@aws-sdk/client-app-mesh 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/AppMesh.js +1 -87
- package/dist-cjs/AppMeshClient.js +1 -43
- package/dist-cjs/commands/CreateGatewayRouteCommand.js +1 -28
- package/dist-cjs/commands/CreateMeshCommand.js +1 -28
- package/dist-cjs/commands/CreateRouteCommand.js +1 -28
- package/dist-cjs/commands/CreateVirtualGatewayCommand.js +1 -28
- package/dist-cjs/commands/CreateVirtualNodeCommand.js +1 -28
- package/dist-cjs/commands/CreateVirtualRouterCommand.js +1 -28
- package/dist-cjs/commands/CreateVirtualServiceCommand.js +1 -28
- package/dist-cjs/commands/DeleteGatewayRouteCommand.js +1 -28
- package/dist-cjs/commands/DeleteMeshCommand.js +1 -28
- package/dist-cjs/commands/DeleteRouteCommand.js +1 -28
- package/dist-cjs/commands/DeleteVirtualGatewayCommand.js +1 -28
- package/dist-cjs/commands/DeleteVirtualNodeCommand.js +1 -28
- package/dist-cjs/commands/DeleteVirtualRouterCommand.js +1 -28
- package/dist-cjs/commands/DeleteVirtualServiceCommand.js +1 -28
- package/dist-cjs/commands/DescribeGatewayRouteCommand.js +1 -28
- package/dist-cjs/commands/DescribeMeshCommand.js +1 -28
- package/dist-cjs/commands/DescribeRouteCommand.js +1 -28
- package/dist-cjs/commands/DescribeVirtualGatewayCommand.js +1 -28
- package/dist-cjs/commands/DescribeVirtualNodeCommand.js +1 -28
- package/dist-cjs/commands/DescribeVirtualRouterCommand.js +1 -28
- package/dist-cjs/commands/DescribeVirtualServiceCommand.js +1 -28
- package/dist-cjs/commands/ListGatewayRoutesCommand.js +1 -28
- package/dist-cjs/commands/ListMeshesCommand.js +1 -28
- package/dist-cjs/commands/ListRoutesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListVirtualGatewaysCommand.js +1 -28
- package/dist-cjs/commands/ListVirtualNodesCommand.js +1 -28
- package/dist-cjs/commands/ListVirtualRoutersCommand.js +1 -28
- package/dist-cjs/commands/ListVirtualServicesCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateGatewayRouteCommand.js +1 -28
- package/dist-cjs/commands/UpdateMeshCommand.js +1 -28
- package/dist-cjs/commands/UpdateRouteCommand.js +1 -28
- package/dist-cjs/commands/UpdateVirtualGatewayCommand.js +1 -28
- package/dist-cjs/commands/UpdateVirtualNodeCommand.js +1 -28
- package/dist-cjs/commands/UpdateVirtualRouterCommand.js +1 -28
- package/dist-cjs/commands/UpdateVirtualServiceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -41
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +4430 -11
- package/dist-cjs/models/AppMeshServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -472
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListGatewayRoutesPaginator.js +1 -7
- package/dist-cjs/pagination/ListMeshesPaginator.js +1 -7
- package/dist-cjs/pagination/ListRoutesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/ListVirtualGatewaysPaginator.js +1 -7
- package/dist-cjs/pagination/ListVirtualNodesPaginator.js +1 -7
- package/dist-cjs/pagination/ListVirtualRoutersPaginator.js +1 -7
- package/dist-cjs/pagination/ListVirtualServicesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -12
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2926
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2926 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_DeleteVirtualNodeCommand = exports.de_DeleteVirtualGatewayCommand = exports.de_DeleteRouteCommand = exports.de_DeleteMeshCommand = exports.de_DeleteGatewayRouteCommand = exports.de_CreateVirtualServiceCommand = exports.de_CreateVirtualRouterCommand = exports.de_CreateVirtualNodeCommand = exports.de_CreateVirtualGatewayCommand = exports.de_CreateRouteCommand = exports.de_CreateMeshCommand = exports.de_CreateGatewayRouteCommand = exports.se_UpdateVirtualServiceCommand = exports.se_UpdateVirtualRouterCommand = exports.se_UpdateVirtualNodeCommand = exports.se_UpdateVirtualGatewayCommand = exports.se_UpdateRouteCommand = exports.se_UpdateMeshCommand = exports.se_UpdateGatewayRouteCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListVirtualServicesCommand = exports.se_ListVirtualRoutersCommand = exports.se_ListVirtualNodesCommand = exports.se_ListVirtualGatewaysCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRoutesCommand = exports.se_ListMeshesCommand = exports.se_ListGatewayRoutesCommand = exports.se_DescribeVirtualServiceCommand = exports.se_DescribeVirtualRouterCommand = exports.se_DescribeVirtualNodeCommand = exports.se_DescribeVirtualGatewayCommand = exports.se_DescribeRouteCommand = exports.se_DescribeMeshCommand = exports.se_DescribeGatewayRouteCommand = exports.se_DeleteVirtualServiceCommand = exports.se_DeleteVirtualRouterCommand = exports.se_DeleteVirtualNodeCommand = exports.se_DeleteVirtualGatewayCommand = exports.se_DeleteRouteCommand = exports.se_DeleteMeshCommand = exports.se_DeleteGatewayRouteCommand = exports.se_CreateVirtualServiceCommand = exports.se_CreateVirtualRouterCommand = exports.se_CreateVirtualNodeCommand = exports.se_CreateVirtualGatewayCommand = exports.se_CreateRouteCommand = exports.se_CreateMeshCommand = exports.se_CreateGatewayRouteCommand = void 0;
|
|
4
|
-
exports.de_UpdateVirtualServiceCommand = exports.de_UpdateVirtualRouterCommand = exports.de_UpdateVirtualNodeCommand = exports.de_UpdateVirtualGatewayCommand = exports.de_UpdateRouteCommand = exports.de_UpdateMeshCommand = exports.de_UpdateGatewayRouteCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListVirtualServicesCommand = exports.de_ListVirtualRoutersCommand = exports.de_ListVirtualNodesCommand = exports.de_ListVirtualGatewaysCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRoutesCommand = exports.de_ListMeshesCommand = exports.de_ListGatewayRoutesCommand = exports.de_DescribeVirtualServiceCommand = exports.de_DescribeVirtualRouterCommand = exports.de_DescribeVirtualNodeCommand = exports.de_DescribeVirtualGatewayCommand = exports.de_DescribeRouteCommand = exports.de_DescribeMeshCommand = exports.de_DescribeGatewayRouteCommand = exports.de_DeleteVirtualServiceCommand = exports.de_DeleteVirtualRouterCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const AppMeshServiceException_1 = require("../models/AppMeshServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateGatewayRouteCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes");
|
|
16
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
17
|
-
b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
18
|
-
const query = (0, smithy_client_1.map)({
|
|
19
|
-
[_mO]: [, input[_mO]],
|
|
20
|
-
});
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
23
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
24
|
-
gatewayRouteName: [],
|
|
25
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
26
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
27
|
-
}));
|
|
28
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
29
|
-
return b.build();
|
|
30
|
-
};
|
|
31
|
-
exports.se_CreateGatewayRouteCommand = se_CreateGatewayRouteCommand;
|
|
32
|
-
const se_CreateMeshCommand = async (input, context) => {
|
|
33
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
34
|
-
const headers = {
|
|
35
|
-
"content-type": "application/json",
|
|
36
|
-
};
|
|
37
|
-
b.bp("/v20190125/meshes");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
41
|
-
meshName: [],
|
|
42
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
43
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
44
|
-
}));
|
|
45
|
-
b.m("PUT").h(headers).b(body);
|
|
46
|
-
return b.build();
|
|
47
|
-
};
|
|
48
|
-
exports.se_CreateMeshCommand = se_CreateMeshCommand;
|
|
49
|
-
const se_CreateRouteCommand = async (input, context) => {
|
|
50
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
51
|
-
const headers = {
|
|
52
|
-
"content-type": "application/json",
|
|
53
|
-
};
|
|
54
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes");
|
|
55
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
56
|
-
b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
57
|
-
const query = (0, smithy_client_1.map)({
|
|
58
|
-
[_mO]: [, input[_mO]],
|
|
59
|
-
});
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
63
|
-
routeName: [],
|
|
64
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
66
|
-
}));
|
|
67
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
exports.se_CreateRouteCommand = se_CreateRouteCommand;
|
|
71
|
-
const se_CreateVirtualGatewayCommand = async (input, context) => {
|
|
72
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
73
|
-
const headers = {
|
|
74
|
-
"content-type": "application/json",
|
|
75
|
-
};
|
|
76
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateways");
|
|
77
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
78
|
-
const query = (0, smithy_client_1.map)({
|
|
79
|
-
[_mO]: [, input[_mO]],
|
|
80
|
-
});
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
83
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
84
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
85
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
86
|
-
virtualGatewayName: [],
|
|
87
|
-
}));
|
|
88
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
|
-
exports.se_CreateVirtualGatewayCommand = se_CreateVirtualGatewayCommand;
|
|
92
|
-
const se_CreateVirtualNodeCommand = async (input, context) => {
|
|
93
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
|
-
const headers = {
|
|
95
|
-
"content-type": "application/json",
|
|
96
|
-
};
|
|
97
|
-
b.bp("/v20190125/meshes/{meshName}/virtualNodes");
|
|
98
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
99
|
-
const query = (0, smithy_client_1.map)({
|
|
100
|
-
[_mO]: [, input[_mO]],
|
|
101
|
-
});
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
104
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
105
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
106
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
107
|
-
virtualNodeName: [],
|
|
108
|
-
}));
|
|
109
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
exports.se_CreateVirtualNodeCommand = se_CreateVirtualNodeCommand;
|
|
113
|
-
const se_CreateVirtualRouterCommand = async (input, context) => {
|
|
114
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
115
|
-
const headers = {
|
|
116
|
-
"content-type": "application/json",
|
|
117
|
-
};
|
|
118
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouters");
|
|
119
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
120
|
-
const query = (0, smithy_client_1.map)({
|
|
121
|
-
[_mO]: [, input[_mO]],
|
|
122
|
-
});
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
125
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
126
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
127
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
128
|
-
virtualRouterName: [],
|
|
129
|
-
}));
|
|
130
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
exports.se_CreateVirtualRouterCommand = se_CreateVirtualRouterCommand;
|
|
134
|
-
const se_CreateVirtualServiceCommand = async (input, context) => {
|
|
135
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
136
|
-
const headers = {
|
|
137
|
-
"content-type": "application/json",
|
|
138
|
-
};
|
|
139
|
-
b.bp("/v20190125/meshes/{meshName}/virtualServices");
|
|
140
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
141
|
-
const query = (0, smithy_client_1.map)({
|
|
142
|
-
[_mO]: [, input[_mO]],
|
|
143
|
-
});
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
147
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
148
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
149
|
-
virtualServiceName: [],
|
|
150
|
-
}));
|
|
151
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
exports.se_CreateVirtualServiceCommand = se_CreateVirtualServiceCommand;
|
|
155
|
-
const se_DeleteGatewayRouteCommand = async (input, context) => {
|
|
156
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
157
|
-
const headers = {};
|
|
158
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}");
|
|
159
|
-
b.p("gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
|
|
160
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
161
|
-
b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
162
|
-
const query = (0, smithy_client_1.map)({
|
|
163
|
-
[_mO]: [, input[_mO]],
|
|
164
|
-
});
|
|
165
|
-
let body;
|
|
166
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
167
|
-
return b.build();
|
|
168
|
-
};
|
|
169
|
-
exports.se_DeleteGatewayRouteCommand = se_DeleteGatewayRouteCommand;
|
|
170
|
-
const se_DeleteMeshCommand = async (input, context) => {
|
|
171
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
172
|
-
const headers = {};
|
|
173
|
-
b.bp("/v20190125/meshes/{meshName}");
|
|
174
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
175
|
-
let body;
|
|
176
|
-
b.m("DELETE").h(headers).b(body);
|
|
177
|
-
return b.build();
|
|
178
|
-
};
|
|
179
|
-
exports.se_DeleteMeshCommand = se_DeleteMeshCommand;
|
|
180
|
-
const se_DeleteRouteCommand = async (input, context) => {
|
|
181
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
182
|
-
const headers = {};
|
|
183
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}");
|
|
184
|
-
b.p("routeName", () => input.routeName, "{routeName}", false);
|
|
185
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
186
|
-
b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
187
|
-
const query = (0, smithy_client_1.map)({
|
|
188
|
-
[_mO]: [, input[_mO]],
|
|
189
|
-
});
|
|
190
|
-
let body;
|
|
191
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
192
|
-
return b.build();
|
|
193
|
-
};
|
|
194
|
-
exports.se_DeleteRouteCommand = se_DeleteRouteCommand;
|
|
195
|
-
const se_DeleteVirtualGatewayCommand = async (input, context) => {
|
|
196
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
197
|
-
const headers = {};
|
|
198
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}");
|
|
199
|
-
b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
200
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
201
|
-
const query = (0, smithy_client_1.map)({
|
|
202
|
-
[_mO]: [, input[_mO]],
|
|
203
|
-
});
|
|
204
|
-
let body;
|
|
205
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
206
|
-
return b.build();
|
|
207
|
-
};
|
|
208
|
-
exports.se_DeleteVirtualGatewayCommand = se_DeleteVirtualGatewayCommand;
|
|
209
|
-
const se_DeleteVirtualNodeCommand = async (input, context) => {
|
|
210
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
211
|
-
const headers = {};
|
|
212
|
-
b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}");
|
|
213
|
-
b.p("virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
|
|
214
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
215
|
-
const query = (0, smithy_client_1.map)({
|
|
216
|
-
[_mO]: [, input[_mO]],
|
|
217
|
-
});
|
|
218
|
-
let body;
|
|
219
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
exports.se_DeleteVirtualNodeCommand = se_DeleteVirtualNodeCommand;
|
|
223
|
-
const se_DeleteVirtualRouterCommand = async (input, context) => {
|
|
224
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}");
|
|
227
|
-
b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
228
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
229
|
-
const query = (0, smithy_client_1.map)({
|
|
230
|
-
[_mO]: [, input[_mO]],
|
|
231
|
-
});
|
|
232
|
-
let body;
|
|
233
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
exports.se_DeleteVirtualRouterCommand = se_DeleteVirtualRouterCommand;
|
|
237
|
-
const se_DeleteVirtualServiceCommand = async (input, context) => {
|
|
238
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
|
-
const headers = {};
|
|
240
|
-
b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}");
|
|
241
|
-
b.p("virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
|
|
242
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
243
|
-
const query = (0, smithy_client_1.map)({
|
|
244
|
-
[_mO]: [, input[_mO]],
|
|
245
|
-
});
|
|
246
|
-
let body;
|
|
247
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
248
|
-
return b.build();
|
|
249
|
-
};
|
|
250
|
-
exports.se_DeleteVirtualServiceCommand = se_DeleteVirtualServiceCommand;
|
|
251
|
-
const se_DescribeGatewayRouteCommand = async (input, context) => {
|
|
252
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
253
|
-
const headers = {};
|
|
254
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}");
|
|
255
|
-
b.p("gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
|
|
256
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
257
|
-
b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
258
|
-
const query = (0, smithy_client_1.map)({
|
|
259
|
-
[_mO]: [, input[_mO]],
|
|
260
|
-
});
|
|
261
|
-
let body;
|
|
262
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
263
|
-
return b.build();
|
|
264
|
-
};
|
|
265
|
-
exports.se_DescribeGatewayRouteCommand = se_DescribeGatewayRouteCommand;
|
|
266
|
-
const se_DescribeMeshCommand = async (input, context) => {
|
|
267
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
268
|
-
const headers = {};
|
|
269
|
-
b.bp("/v20190125/meshes/{meshName}");
|
|
270
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
271
|
-
const query = (0, smithy_client_1.map)({
|
|
272
|
-
[_mO]: [, input[_mO]],
|
|
273
|
-
});
|
|
274
|
-
let body;
|
|
275
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
276
|
-
return b.build();
|
|
277
|
-
};
|
|
278
|
-
exports.se_DescribeMeshCommand = se_DescribeMeshCommand;
|
|
279
|
-
const se_DescribeRouteCommand = async (input, context) => {
|
|
280
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
281
|
-
const headers = {};
|
|
282
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}");
|
|
283
|
-
b.p("routeName", () => input.routeName, "{routeName}", false);
|
|
284
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
285
|
-
b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
286
|
-
const query = (0, smithy_client_1.map)({
|
|
287
|
-
[_mO]: [, input[_mO]],
|
|
288
|
-
});
|
|
289
|
-
let body;
|
|
290
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
291
|
-
return b.build();
|
|
292
|
-
};
|
|
293
|
-
exports.se_DescribeRouteCommand = se_DescribeRouteCommand;
|
|
294
|
-
const se_DescribeVirtualGatewayCommand = async (input, context) => {
|
|
295
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
296
|
-
const headers = {};
|
|
297
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}");
|
|
298
|
-
b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
299
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
300
|
-
const query = (0, smithy_client_1.map)({
|
|
301
|
-
[_mO]: [, input[_mO]],
|
|
302
|
-
});
|
|
303
|
-
let body;
|
|
304
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
305
|
-
return b.build();
|
|
306
|
-
};
|
|
307
|
-
exports.se_DescribeVirtualGatewayCommand = se_DescribeVirtualGatewayCommand;
|
|
308
|
-
const se_DescribeVirtualNodeCommand = async (input, context) => {
|
|
309
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
310
|
-
const headers = {};
|
|
311
|
-
b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}");
|
|
312
|
-
b.p("virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
|
|
313
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
314
|
-
const query = (0, smithy_client_1.map)({
|
|
315
|
-
[_mO]: [, input[_mO]],
|
|
316
|
-
});
|
|
317
|
-
let body;
|
|
318
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
319
|
-
return b.build();
|
|
320
|
-
};
|
|
321
|
-
exports.se_DescribeVirtualNodeCommand = se_DescribeVirtualNodeCommand;
|
|
322
|
-
const se_DescribeVirtualRouterCommand = async (input, context) => {
|
|
323
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
324
|
-
const headers = {};
|
|
325
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}");
|
|
326
|
-
b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
327
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
328
|
-
const query = (0, smithy_client_1.map)({
|
|
329
|
-
[_mO]: [, input[_mO]],
|
|
330
|
-
});
|
|
331
|
-
let body;
|
|
332
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
333
|
-
return b.build();
|
|
334
|
-
};
|
|
335
|
-
exports.se_DescribeVirtualRouterCommand = se_DescribeVirtualRouterCommand;
|
|
336
|
-
const se_DescribeVirtualServiceCommand = async (input, context) => {
|
|
337
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
338
|
-
const headers = {};
|
|
339
|
-
b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}");
|
|
340
|
-
b.p("virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
|
|
341
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
342
|
-
const query = (0, smithy_client_1.map)({
|
|
343
|
-
[_mO]: [, input[_mO]],
|
|
344
|
-
});
|
|
345
|
-
let body;
|
|
346
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
exports.se_DescribeVirtualServiceCommand = se_DescribeVirtualServiceCommand;
|
|
350
|
-
const se_ListGatewayRoutesCommand = async (input, context) => {
|
|
351
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
352
|
-
const headers = {};
|
|
353
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes");
|
|
354
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
355
|
-
b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
356
|
-
const query = (0, smithy_client_1.map)({
|
|
357
|
-
[_nT]: [, input[_nT]],
|
|
358
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
359
|
-
[_mO]: [, input[_mO]],
|
|
360
|
-
});
|
|
361
|
-
let body;
|
|
362
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
363
|
-
return b.build();
|
|
364
|
-
};
|
|
365
|
-
exports.se_ListGatewayRoutesCommand = se_ListGatewayRoutesCommand;
|
|
366
|
-
const se_ListMeshesCommand = async (input, context) => {
|
|
367
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
368
|
-
const headers = {};
|
|
369
|
-
b.bp("/v20190125/meshes");
|
|
370
|
-
const query = (0, smithy_client_1.map)({
|
|
371
|
-
[_nT]: [, input[_nT]],
|
|
372
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
373
|
-
});
|
|
374
|
-
let body;
|
|
375
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
376
|
-
return b.build();
|
|
377
|
-
};
|
|
378
|
-
exports.se_ListMeshesCommand = se_ListMeshesCommand;
|
|
379
|
-
const se_ListRoutesCommand = async (input, context) => {
|
|
380
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
381
|
-
const headers = {};
|
|
382
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes");
|
|
383
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
384
|
-
b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
385
|
-
const query = (0, smithy_client_1.map)({
|
|
386
|
-
[_nT]: [, input[_nT]],
|
|
387
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
388
|
-
[_mO]: [, input[_mO]],
|
|
389
|
-
});
|
|
390
|
-
let body;
|
|
391
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
392
|
-
return b.build();
|
|
393
|
-
};
|
|
394
|
-
exports.se_ListRoutesCommand = se_ListRoutesCommand;
|
|
395
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
396
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
397
|
-
const headers = {};
|
|
398
|
-
b.bp("/v20190125/tags");
|
|
399
|
-
const query = (0, smithy_client_1.map)({
|
|
400
|
-
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
401
|
-
[_nT]: [, input[_nT]],
|
|
402
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
403
|
-
});
|
|
404
|
-
let body;
|
|
405
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
406
|
-
return b.build();
|
|
407
|
-
};
|
|
408
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
409
|
-
const se_ListVirtualGatewaysCommand = async (input, context) => {
|
|
410
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
411
|
-
const headers = {};
|
|
412
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateways");
|
|
413
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
414
|
-
const query = (0, smithy_client_1.map)({
|
|
415
|
-
[_nT]: [, input[_nT]],
|
|
416
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
417
|
-
[_mO]: [, input[_mO]],
|
|
418
|
-
});
|
|
419
|
-
let body;
|
|
420
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
421
|
-
return b.build();
|
|
422
|
-
};
|
|
423
|
-
exports.se_ListVirtualGatewaysCommand = se_ListVirtualGatewaysCommand;
|
|
424
|
-
const se_ListVirtualNodesCommand = async (input, context) => {
|
|
425
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
426
|
-
const headers = {};
|
|
427
|
-
b.bp("/v20190125/meshes/{meshName}/virtualNodes");
|
|
428
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
429
|
-
const query = (0, smithy_client_1.map)({
|
|
430
|
-
[_nT]: [, input[_nT]],
|
|
431
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
432
|
-
[_mO]: [, input[_mO]],
|
|
433
|
-
});
|
|
434
|
-
let body;
|
|
435
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
436
|
-
return b.build();
|
|
437
|
-
};
|
|
438
|
-
exports.se_ListVirtualNodesCommand = se_ListVirtualNodesCommand;
|
|
439
|
-
const se_ListVirtualRoutersCommand = async (input, context) => {
|
|
440
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
441
|
-
const headers = {};
|
|
442
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouters");
|
|
443
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
444
|
-
const query = (0, smithy_client_1.map)({
|
|
445
|
-
[_nT]: [, input[_nT]],
|
|
446
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
447
|
-
[_mO]: [, input[_mO]],
|
|
448
|
-
});
|
|
449
|
-
let body;
|
|
450
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
451
|
-
return b.build();
|
|
452
|
-
};
|
|
453
|
-
exports.se_ListVirtualRoutersCommand = se_ListVirtualRoutersCommand;
|
|
454
|
-
const se_ListVirtualServicesCommand = async (input, context) => {
|
|
455
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
456
|
-
const headers = {};
|
|
457
|
-
b.bp("/v20190125/meshes/{meshName}/virtualServices");
|
|
458
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
459
|
-
const query = (0, smithy_client_1.map)({
|
|
460
|
-
[_nT]: [, input[_nT]],
|
|
461
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
462
|
-
[_mO]: [, input[_mO]],
|
|
463
|
-
});
|
|
464
|
-
let body;
|
|
465
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
466
|
-
return b.build();
|
|
467
|
-
};
|
|
468
|
-
exports.se_ListVirtualServicesCommand = se_ListVirtualServicesCommand;
|
|
469
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
470
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
471
|
-
const headers = {
|
|
472
|
-
"content-type": "application/json",
|
|
473
|
-
};
|
|
474
|
-
b.bp("/v20190125/tag");
|
|
475
|
-
const query = (0, smithy_client_1.map)({
|
|
476
|
-
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
477
|
-
});
|
|
478
|
-
let body;
|
|
479
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
480
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
481
|
-
}));
|
|
482
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
483
|
-
return b.build();
|
|
484
|
-
};
|
|
485
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
486
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
487
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
488
|
-
const headers = {
|
|
489
|
-
"content-type": "application/json",
|
|
490
|
-
};
|
|
491
|
-
b.bp("/v20190125/untag");
|
|
492
|
-
const query = (0, smithy_client_1.map)({
|
|
493
|
-
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
494
|
-
});
|
|
495
|
-
let body;
|
|
496
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
497
|
-
tagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
498
|
-
}));
|
|
499
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
500
|
-
return b.build();
|
|
501
|
-
};
|
|
502
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
503
|
-
const se_UpdateGatewayRouteCommand = async (input, context) => {
|
|
504
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
505
|
-
const headers = {
|
|
506
|
-
"content-type": "application/json",
|
|
507
|
-
};
|
|
508
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}");
|
|
509
|
-
b.p("gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
|
|
510
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
511
|
-
b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
512
|
-
const query = (0, smithy_client_1.map)({
|
|
513
|
-
[_mO]: [, input[_mO]],
|
|
514
|
-
});
|
|
515
|
-
let body;
|
|
516
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
517
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
518
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
519
|
-
}));
|
|
520
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
521
|
-
return b.build();
|
|
522
|
-
};
|
|
523
|
-
exports.se_UpdateGatewayRouteCommand = se_UpdateGatewayRouteCommand;
|
|
524
|
-
const se_UpdateMeshCommand = async (input, context) => {
|
|
525
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
526
|
-
const headers = {
|
|
527
|
-
"content-type": "application/json",
|
|
528
|
-
};
|
|
529
|
-
b.bp("/v20190125/meshes/{meshName}");
|
|
530
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
531
|
-
let body;
|
|
532
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
533
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
534
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
535
|
-
}));
|
|
536
|
-
b.m("PUT").h(headers).b(body);
|
|
537
|
-
return b.build();
|
|
538
|
-
};
|
|
539
|
-
exports.se_UpdateMeshCommand = se_UpdateMeshCommand;
|
|
540
|
-
const se_UpdateRouteCommand = async (input, context) => {
|
|
541
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
542
|
-
const headers = {
|
|
543
|
-
"content-type": "application/json",
|
|
544
|
-
};
|
|
545
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}");
|
|
546
|
-
b.p("routeName", () => input.routeName, "{routeName}", false);
|
|
547
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
548
|
-
b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
549
|
-
const query = (0, smithy_client_1.map)({
|
|
550
|
-
[_mO]: [, input[_mO]],
|
|
551
|
-
});
|
|
552
|
-
let body;
|
|
553
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
554
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
555
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
556
|
-
}));
|
|
557
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
558
|
-
return b.build();
|
|
559
|
-
};
|
|
560
|
-
exports.se_UpdateRouteCommand = se_UpdateRouteCommand;
|
|
561
|
-
const se_UpdateVirtualGatewayCommand = async (input, context) => {
|
|
562
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
563
|
-
const headers = {
|
|
564
|
-
"content-type": "application/json",
|
|
565
|
-
};
|
|
566
|
-
b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}");
|
|
567
|
-
b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
568
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
569
|
-
const query = (0, smithy_client_1.map)({
|
|
570
|
-
[_mO]: [, input[_mO]],
|
|
571
|
-
});
|
|
572
|
-
let body;
|
|
573
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
574
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
575
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
576
|
-
}));
|
|
577
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
578
|
-
return b.build();
|
|
579
|
-
};
|
|
580
|
-
exports.se_UpdateVirtualGatewayCommand = se_UpdateVirtualGatewayCommand;
|
|
581
|
-
const se_UpdateVirtualNodeCommand = async (input, context) => {
|
|
582
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
583
|
-
const headers = {
|
|
584
|
-
"content-type": "application/json",
|
|
585
|
-
};
|
|
586
|
-
b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}");
|
|
587
|
-
b.p("virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
|
|
588
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
589
|
-
const query = (0, smithy_client_1.map)({
|
|
590
|
-
[_mO]: [, input[_mO]],
|
|
591
|
-
});
|
|
592
|
-
let body;
|
|
593
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
594
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
595
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
596
|
-
}));
|
|
597
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
598
|
-
return b.build();
|
|
599
|
-
};
|
|
600
|
-
exports.se_UpdateVirtualNodeCommand = se_UpdateVirtualNodeCommand;
|
|
601
|
-
const se_UpdateVirtualRouterCommand = async (input, context) => {
|
|
602
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
603
|
-
const headers = {
|
|
604
|
-
"content-type": "application/json",
|
|
605
|
-
};
|
|
606
|
-
b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}");
|
|
607
|
-
b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
608
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
609
|
-
const query = (0, smithy_client_1.map)({
|
|
610
|
-
[_mO]: [, input[_mO]],
|
|
611
|
-
});
|
|
612
|
-
let body;
|
|
613
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
614
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
615
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
616
|
-
}));
|
|
617
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
618
|
-
return b.build();
|
|
619
|
-
};
|
|
620
|
-
exports.se_UpdateVirtualRouterCommand = se_UpdateVirtualRouterCommand;
|
|
621
|
-
const se_UpdateVirtualServiceCommand = async (input, context) => {
|
|
622
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
623
|
-
const headers = {
|
|
624
|
-
"content-type": "application/json",
|
|
625
|
-
};
|
|
626
|
-
b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}");
|
|
627
|
-
b.p("virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
|
|
628
|
-
b.p("meshName", () => input.meshName, "{meshName}", false);
|
|
629
|
-
const query = (0, smithy_client_1.map)({
|
|
630
|
-
[_mO]: [, input[_mO]],
|
|
631
|
-
});
|
|
632
|
-
let body;
|
|
633
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
634
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
635
|
-
spec: (_) => (0, smithy_client_1._json)(_),
|
|
636
|
-
}));
|
|
637
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
638
|
-
return b.build();
|
|
639
|
-
};
|
|
640
|
-
exports.se_UpdateVirtualServiceCommand = se_UpdateVirtualServiceCommand;
|
|
641
|
-
const de_CreateGatewayRouteCommand = async (output, context) => {
|
|
642
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
643
|
-
return de_CreateGatewayRouteCommandError(output, context);
|
|
644
|
-
}
|
|
645
|
-
const contents = (0, smithy_client_1.map)({
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
});
|
|
648
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
649
|
-
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
650
|
-
return contents;
|
|
651
|
-
};
|
|
652
|
-
exports.de_CreateGatewayRouteCommand = de_CreateGatewayRouteCommand;
|
|
653
|
-
const de_CreateGatewayRouteCommandError = async (output, context) => {
|
|
654
|
-
const parsedOutput = {
|
|
655
|
-
...output,
|
|
656
|
-
body: await parseErrorBody(output.body, context),
|
|
657
|
-
};
|
|
658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
switch (errorCode) {
|
|
660
|
-
case "BadRequestException":
|
|
661
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
662
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ConflictException":
|
|
664
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
665
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ForbiddenException":
|
|
667
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
668
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
669
|
-
case "InternalServerErrorException":
|
|
670
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
671
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
672
|
-
case "LimitExceededException":
|
|
673
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
674
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
675
|
-
case "NotFoundException":
|
|
676
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
677
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ServiceUnavailableException":
|
|
679
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
680
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
681
|
-
case "TooManyRequestsException":
|
|
682
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
683
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
684
|
-
default:
|
|
685
|
-
const parsedBody = parsedOutput.body;
|
|
686
|
-
return throwDefaultError({
|
|
687
|
-
output,
|
|
688
|
-
parsedBody,
|
|
689
|
-
errorCode,
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
const de_CreateMeshCommand = async (output, context) => {
|
|
694
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
-
return de_CreateMeshCommandError(output, context);
|
|
696
|
-
}
|
|
697
|
-
const contents = (0, smithy_client_1.map)({
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
});
|
|
700
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
701
|
-
contents.mesh = de_MeshData(data, context);
|
|
702
|
-
return contents;
|
|
703
|
-
};
|
|
704
|
-
exports.de_CreateMeshCommand = de_CreateMeshCommand;
|
|
705
|
-
const de_CreateMeshCommandError = async (output, context) => {
|
|
706
|
-
const parsedOutput = {
|
|
707
|
-
...output,
|
|
708
|
-
body: await parseErrorBody(output.body, context),
|
|
709
|
-
};
|
|
710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
|
-
switch (errorCode) {
|
|
712
|
-
case "BadRequestException":
|
|
713
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
714
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ConflictException":
|
|
716
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
717
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ForbiddenException":
|
|
719
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
720
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InternalServerErrorException":
|
|
722
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
723
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
724
|
-
case "LimitExceededException":
|
|
725
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
726
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
727
|
-
case "NotFoundException":
|
|
728
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
729
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ServiceUnavailableException":
|
|
731
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
732
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
733
|
-
case "TooManyRequestsException":
|
|
734
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
735
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
736
|
-
default:
|
|
737
|
-
const parsedBody = parsedOutput.body;
|
|
738
|
-
return throwDefaultError({
|
|
739
|
-
output,
|
|
740
|
-
parsedBody,
|
|
741
|
-
errorCode,
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
};
|
|
745
|
-
const de_CreateRouteCommand = async (output, context) => {
|
|
746
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
747
|
-
return de_CreateRouteCommandError(output, context);
|
|
748
|
-
}
|
|
749
|
-
const contents = (0, smithy_client_1.map)({
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
});
|
|
752
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
753
|
-
contents.route = de_RouteData(data, context);
|
|
754
|
-
return contents;
|
|
755
|
-
};
|
|
756
|
-
exports.de_CreateRouteCommand = de_CreateRouteCommand;
|
|
757
|
-
const de_CreateRouteCommandError = async (output, context) => {
|
|
758
|
-
const parsedOutput = {
|
|
759
|
-
...output,
|
|
760
|
-
body: await parseErrorBody(output.body, context),
|
|
761
|
-
};
|
|
762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
-
switch (errorCode) {
|
|
764
|
-
case "BadRequestException":
|
|
765
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
766
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
767
|
-
case "ConflictException":
|
|
768
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
769
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
770
|
-
case "ForbiddenException":
|
|
771
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
772
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
773
|
-
case "InternalServerErrorException":
|
|
774
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
775
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
776
|
-
case "LimitExceededException":
|
|
777
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
778
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
779
|
-
case "NotFoundException":
|
|
780
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
781
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ServiceUnavailableException":
|
|
783
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
784
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
785
|
-
case "TooManyRequestsException":
|
|
786
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
787
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode,
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
const de_CreateVirtualGatewayCommand = async (output, context) => {
|
|
798
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
799
|
-
return de_CreateVirtualGatewayCommandError(output, context);
|
|
800
|
-
}
|
|
801
|
-
const contents = (0, smithy_client_1.map)({
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
});
|
|
804
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
805
|
-
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
806
|
-
return contents;
|
|
807
|
-
};
|
|
808
|
-
exports.de_CreateVirtualGatewayCommand = de_CreateVirtualGatewayCommand;
|
|
809
|
-
const de_CreateVirtualGatewayCommandError = async (output, context) => {
|
|
810
|
-
const parsedOutput = {
|
|
811
|
-
...output,
|
|
812
|
-
body: await parseErrorBody(output.body, context),
|
|
813
|
-
};
|
|
814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
|
-
switch (errorCode) {
|
|
816
|
-
case "BadRequestException":
|
|
817
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
818
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ConflictException":
|
|
820
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
821
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
822
|
-
case "ForbiddenException":
|
|
823
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
824
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
825
|
-
case "InternalServerErrorException":
|
|
826
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
827
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
828
|
-
case "LimitExceededException":
|
|
829
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
830
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
831
|
-
case "NotFoundException":
|
|
832
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
833
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ServiceUnavailableException":
|
|
835
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
836
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
837
|
-
case "TooManyRequestsException":
|
|
838
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
839
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
840
|
-
default:
|
|
841
|
-
const parsedBody = parsedOutput.body;
|
|
842
|
-
return throwDefaultError({
|
|
843
|
-
output,
|
|
844
|
-
parsedBody,
|
|
845
|
-
errorCode,
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
|
-
const de_CreateVirtualNodeCommand = async (output, context) => {
|
|
850
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
|
-
return de_CreateVirtualNodeCommandError(output, context);
|
|
852
|
-
}
|
|
853
|
-
const contents = (0, smithy_client_1.map)({
|
|
854
|
-
$metadata: deserializeMetadata(output),
|
|
855
|
-
});
|
|
856
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
857
|
-
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
858
|
-
return contents;
|
|
859
|
-
};
|
|
860
|
-
exports.de_CreateVirtualNodeCommand = de_CreateVirtualNodeCommand;
|
|
861
|
-
const de_CreateVirtualNodeCommandError = async (output, context) => {
|
|
862
|
-
const parsedOutput = {
|
|
863
|
-
...output,
|
|
864
|
-
body: await parseErrorBody(output.body, context),
|
|
865
|
-
};
|
|
866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
-
switch (errorCode) {
|
|
868
|
-
case "BadRequestException":
|
|
869
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
870
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ConflictException":
|
|
872
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
873
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ForbiddenException":
|
|
875
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
876
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
877
|
-
case "InternalServerErrorException":
|
|
878
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
879
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
880
|
-
case "LimitExceededException":
|
|
881
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
882
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
883
|
-
case "NotFoundException":
|
|
884
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
885
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ServiceUnavailableException":
|
|
887
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
888
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
889
|
-
case "TooManyRequestsException":
|
|
890
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
891
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
892
|
-
default:
|
|
893
|
-
const parsedBody = parsedOutput.body;
|
|
894
|
-
return throwDefaultError({
|
|
895
|
-
output,
|
|
896
|
-
parsedBody,
|
|
897
|
-
errorCode,
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
|
-
const de_CreateVirtualRouterCommand = async (output, context) => {
|
|
902
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return de_CreateVirtualRouterCommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const contents = (0, smithy_client_1.map)({
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
});
|
|
908
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
909
|
-
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
910
|
-
return contents;
|
|
911
|
-
};
|
|
912
|
-
exports.de_CreateVirtualRouterCommand = de_CreateVirtualRouterCommand;
|
|
913
|
-
const de_CreateVirtualRouterCommandError = async (output, context) => {
|
|
914
|
-
const parsedOutput = {
|
|
915
|
-
...output,
|
|
916
|
-
body: await parseErrorBody(output.body, context),
|
|
917
|
-
};
|
|
918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
|
-
switch (errorCode) {
|
|
920
|
-
case "BadRequestException":
|
|
921
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
922
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ConflictException":
|
|
924
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
925
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ForbiddenException":
|
|
927
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
928
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
929
|
-
case "InternalServerErrorException":
|
|
930
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
931
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
932
|
-
case "LimitExceededException":
|
|
933
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
934
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
935
|
-
case "NotFoundException":
|
|
936
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
937
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ServiceUnavailableException":
|
|
939
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
940
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
941
|
-
case "TooManyRequestsException":
|
|
942
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
943
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
944
|
-
default:
|
|
945
|
-
const parsedBody = parsedOutput.body;
|
|
946
|
-
return throwDefaultError({
|
|
947
|
-
output,
|
|
948
|
-
parsedBody,
|
|
949
|
-
errorCode,
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
const de_CreateVirtualServiceCommand = async (output, context) => {
|
|
954
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
955
|
-
return de_CreateVirtualServiceCommandError(output, context);
|
|
956
|
-
}
|
|
957
|
-
const contents = (0, smithy_client_1.map)({
|
|
958
|
-
$metadata: deserializeMetadata(output),
|
|
959
|
-
});
|
|
960
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
961
|
-
contents.virtualService = de_VirtualServiceData(data, context);
|
|
962
|
-
return contents;
|
|
963
|
-
};
|
|
964
|
-
exports.de_CreateVirtualServiceCommand = de_CreateVirtualServiceCommand;
|
|
965
|
-
const de_CreateVirtualServiceCommandError = async (output, context) => {
|
|
966
|
-
const parsedOutput = {
|
|
967
|
-
...output,
|
|
968
|
-
body: await parseErrorBody(output.body, context),
|
|
969
|
-
};
|
|
970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
-
switch (errorCode) {
|
|
972
|
-
case "BadRequestException":
|
|
973
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
974
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ConflictException":
|
|
976
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
977
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ForbiddenException":
|
|
979
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
980
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
981
|
-
case "InternalServerErrorException":
|
|
982
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
983
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
984
|
-
case "LimitExceededException":
|
|
985
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
986
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
987
|
-
case "NotFoundException":
|
|
988
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
989
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
990
|
-
case "ServiceUnavailableException":
|
|
991
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
992
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
993
|
-
case "TooManyRequestsException":
|
|
994
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
995
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
996
|
-
default:
|
|
997
|
-
const parsedBody = parsedOutput.body;
|
|
998
|
-
return throwDefaultError({
|
|
999
|
-
output,
|
|
1000
|
-
parsedBody,
|
|
1001
|
-
errorCode,
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
};
|
|
1005
|
-
const de_DeleteGatewayRouteCommand = async (output, context) => {
|
|
1006
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1007
|
-
return de_DeleteGatewayRouteCommandError(output, context);
|
|
1008
|
-
}
|
|
1009
|
-
const contents = (0, smithy_client_1.map)({
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
});
|
|
1012
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1013
|
-
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
1014
|
-
return contents;
|
|
1015
|
-
};
|
|
1016
|
-
exports.de_DeleteGatewayRouteCommand = de_DeleteGatewayRouteCommand;
|
|
1017
|
-
const de_DeleteGatewayRouteCommandError = async (output, context) => {
|
|
1018
|
-
const parsedOutput = {
|
|
1019
|
-
...output,
|
|
1020
|
-
body: await parseErrorBody(output.body, context),
|
|
1021
|
-
};
|
|
1022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
|
-
switch (errorCode) {
|
|
1024
|
-
case "BadRequestException":
|
|
1025
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1026
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ForbiddenException":
|
|
1028
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1029
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "InternalServerErrorException":
|
|
1031
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1032
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "NotFoundException":
|
|
1034
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1035
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "ResourceInUseException":
|
|
1037
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1038
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "ServiceUnavailableException":
|
|
1040
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1041
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "TooManyRequestsException":
|
|
1043
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1044
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1045
|
-
default:
|
|
1046
|
-
const parsedBody = parsedOutput.body;
|
|
1047
|
-
return throwDefaultError({
|
|
1048
|
-
output,
|
|
1049
|
-
parsedBody,
|
|
1050
|
-
errorCode,
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
const de_DeleteMeshCommand = async (output, context) => {
|
|
1055
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1056
|
-
return de_DeleteMeshCommandError(output, context);
|
|
1057
|
-
}
|
|
1058
|
-
const contents = (0, smithy_client_1.map)({
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
});
|
|
1061
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1062
|
-
contents.mesh = de_MeshData(data, context);
|
|
1063
|
-
return contents;
|
|
1064
|
-
};
|
|
1065
|
-
exports.de_DeleteMeshCommand = de_DeleteMeshCommand;
|
|
1066
|
-
const de_DeleteMeshCommandError = async (output, context) => {
|
|
1067
|
-
const parsedOutput = {
|
|
1068
|
-
...output,
|
|
1069
|
-
body: await parseErrorBody(output.body, context),
|
|
1070
|
-
};
|
|
1071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "BadRequestException":
|
|
1074
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1075
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ForbiddenException":
|
|
1077
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1078
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "InternalServerErrorException":
|
|
1080
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1081
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "NotFoundException":
|
|
1083
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1084
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ResourceInUseException":
|
|
1086
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1087
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ServiceUnavailableException":
|
|
1089
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1090
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "TooManyRequestsException":
|
|
1092
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1093
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1094
|
-
default:
|
|
1095
|
-
const parsedBody = parsedOutput.body;
|
|
1096
|
-
return throwDefaultError({
|
|
1097
|
-
output,
|
|
1098
|
-
parsedBody,
|
|
1099
|
-
errorCode,
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
};
|
|
1103
|
-
const de_DeleteRouteCommand = async (output, context) => {
|
|
1104
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1105
|
-
return de_DeleteRouteCommandError(output, context);
|
|
1106
|
-
}
|
|
1107
|
-
const contents = (0, smithy_client_1.map)({
|
|
1108
|
-
$metadata: deserializeMetadata(output),
|
|
1109
|
-
});
|
|
1110
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1111
|
-
contents.route = de_RouteData(data, context);
|
|
1112
|
-
return contents;
|
|
1113
|
-
};
|
|
1114
|
-
exports.de_DeleteRouteCommand = de_DeleteRouteCommand;
|
|
1115
|
-
const de_DeleteRouteCommandError = async (output, context) => {
|
|
1116
|
-
const parsedOutput = {
|
|
1117
|
-
...output,
|
|
1118
|
-
body: await parseErrorBody(output.body, context),
|
|
1119
|
-
};
|
|
1120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
|
-
switch (errorCode) {
|
|
1122
|
-
case "BadRequestException":
|
|
1123
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1124
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ForbiddenException":
|
|
1126
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1127
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "InternalServerErrorException":
|
|
1129
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1130
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "NotFoundException":
|
|
1132
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1133
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "ResourceInUseException":
|
|
1135
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1136
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ServiceUnavailableException":
|
|
1138
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1139
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "TooManyRequestsException":
|
|
1141
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1142
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1143
|
-
default:
|
|
1144
|
-
const parsedBody = parsedOutput.body;
|
|
1145
|
-
return throwDefaultError({
|
|
1146
|
-
output,
|
|
1147
|
-
parsedBody,
|
|
1148
|
-
errorCode,
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
};
|
|
1152
|
-
const de_DeleteVirtualGatewayCommand = async (output, context) => {
|
|
1153
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1154
|
-
return de_DeleteVirtualGatewayCommandError(output, context);
|
|
1155
|
-
}
|
|
1156
|
-
const contents = (0, smithy_client_1.map)({
|
|
1157
|
-
$metadata: deserializeMetadata(output),
|
|
1158
|
-
});
|
|
1159
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1160
|
-
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
1161
|
-
return contents;
|
|
1162
|
-
};
|
|
1163
|
-
exports.de_DeleteVirtualGatewayCommand = de_DeleteVirtualGatewayCommand;
|
|
1164
|
-
const de_DeleteVirtualGatewayCommandError = async (output, context) => {
|
|
1165
|
-
const parsedOutput = {
|
|
1166
|
-
...output,
|
|
1167
|
-
body: await parseErrorBody(output.body, context),
|
|
1168
|
-
};
|
|
1169
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
|
-
switch (errorCode) {
|
|
1171
|
-
case "BadRequestException":
|
|
1172
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1173
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ForbiddenException":
|
|
1175
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1176
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "InternalServerErrorException":
|
|
1178
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1179
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "NotFoundException":
|
|
1181
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1182
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "ResourceInUseException":
|
|
1184
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1185
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "ServiceUnavailableException":
|
|
1187
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1188
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "TooManyRequestsException":
|
|
1190
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1191
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1192
|
-
default:
|
|
1193
|
-
const parsedBody = parsedOutput.body;
|
|
1194
|
-
return throwDefaultError({
|
|
1195
|
-
output,
|
|
1196
|
-
parsedBody,
|
|
1197
|
-
errorCode,
|
|
1198
|
-
});
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
|
-
const de_DeleteVirtualNodeCommand = async (output, context) => {
|
|
1202
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1203
|
-
return de_DeleteVirtualNodeCommandError(output, context);
|
|
1204
|
-
}
|
|
1205
|
-
const contents = (0, smithy_client_1.map)({
|
|
1206
|
-
$metadata: deserializeMetadata(output),
|
|
1207
|
-
});
|
|
1208
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1209
|
-
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
1210
|
-
return contents;
|
|
1211
|
-
};
|
|
1212
|
-
exports.de_DeleteVirtualNodeCommand = de_DeleteVirtualNodeCommand;
|
|
1213
|
-
const de_DeleteVirtualNodeCommandError = async (output, context) => {
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context),
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "BadRequestException":
|
|
1221
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1222
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ForbiddenException":
|
|
1224
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1225
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "InternalServerErrorException":
|
|
1227
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1228
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "NotFoundException":
|
|
1230
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1231
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ResourceInUseException":
|
|
1233
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1234
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ServiceUnavailableException":
|
|
1236
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1237
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "TooManyRequestsException":
|
|
1239
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1240
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1241
|
-
default:
|
|
1242
|
-
const parsedBody = parsedOutput.body;
|
|
1243
|
-
return throwDefaultError({
|
|
1244
|
-
output,
|
|
1245
|
-
parsedBody,
|
|
1246
|
-
errorCode,
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
|
-
const de_DeleteVirtualRouterCommand = async (output, context) => {
|
|
1251
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1252
|
-
return de_DeleteVirtualRouterCommandError(output, context);
|
|
1253
|
-
}
|
|
1254
|
-
const contents = (0, smithy_client_1.map)({
|
|
1255
|
-
$metadata: deserializeMetadata(output),
|
|
1256
|
-
});
|
|
1257
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1258
|
-
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
1259
|
-
return contents;
|
|
1260
|
-
};
|
|
1261
|
-
exports.de_DeleteVirtualRouterCommand = de_DeleteVirtualRouterCommand;
|
|
1262
|
-
const de_DeleteVirtualRouterCommandError = async (output, context) => {
|
|
1263
|
-
const parsedOutput = {
|
|
1264
|
-
...output,
|
|
1265
|
-
body: await parseErrorBody(output.body, context),
|
|
1266
|
-
};
|
|
1267
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
|
-
switch (errorCode) {
|
|
1269
|
-
case "BadRequestException":
|
|
1270
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1271
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "ForbiddenException":
|
|
1273
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1274
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "InternalServerErrorException":
|
|
1276
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1277
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "NotFoundException":
|
|
1279
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1280
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ResourceInUseException":
|
|
1282
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1283
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ServiceUnavailableException":
|
|
1285
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1286
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "TooManyRequestsException":
|
|
1288
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1289
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1290
|
-
default:
|
|
1291
|
-
const parsedBody = parsedOutput.body;
|
|
1292
|
-
return throwDefaultError({
|
|
1293
|
-
output,
|
|
1294
|
-
parsedBody,
|
|
1295
|
-
errorCode,
|
|
1296
|
-
});
|
|
1297
|
-
}
|
|
1298
|
-
};
|
|
1299
|
-
const de_DeleteVirtualServiceCommand = async (output, context) => {
|
|
1300
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
|
-
return de_DeleteVirtualServiceCommandError(output, context);
|
|
1302
|
-
}
|
|
1303
|
-
const contents = (0, smithy_client_1.map)({
|
|
1304
|
-
$metadata: deserializeMetadata(output),
|
|
1305
|
-
});
|
|
1306
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1307
|
-
contents.virtualService = de_VirtualServiceData(data, context);
|
|
1308
|
-
return contents;
|
|
1309
|
-
};
|
|
1310
|
-
exports.de_DeleteVirtualServiceCommand = de_DeleteVirtualServiceCommand;
|
|
1311
|
-
const de_DeleteVirtualServiceCommandError = async (output, context) => {
|
|
1312
|
-
const parsedOutput = {
|
|
1313
|
-
...output,
|
|
1314
|
-
body: await parseErrorBody(output.body, context),
|
|
1315
|
-
};
|
|
1316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1317
|
-
switch (errorCode) {
|
|
1318
|
-
case "BadRequestException":
|
|
1319
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1320
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "ForbiddenException":
|
|
1322
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1323
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "InternalServerErrorException":
|
|
1325
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1326
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "NotFoundException":
|
|
1328
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1329
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ResourceInUseException":
|
|
1331
|
-
case "com.amazonaws.appmesh#ResourceInUseException":
|
|
1332
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ServiceUnavailableException":
|
|
1334
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1335
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "TooManyRequestsException":
|
|
1337
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1338
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1339
|
-
default:
|
|
1340
|
-
const parsedBody = parsedOutput.body;
|
|
1341
|
-
return throwDefaultError({
|
|
1342
|
-
output,
|
|
1343
|
-
parsedBody,
|
|
1344
|
-
errorCode,
|
|
1345
|
-
});
|
|
1346
|
-
}
|
|
1347
|
-
};
|
|
1348
|
-
const de_DescribeGatewayRouteCommand = async (output, context) => {
|
|
1349
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1350
|
-
return de_DescribeGatewayRouteCommandError(output, context);
|
|
1351
|
-
}
|
|
1352
|
-
const contents = (0, smithy_client_1.map)({
|
|
1353
|
-
$metadata: deserializeMetadata(output),
|
|
1354
|
-
});
|
|
1355
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1356
|
-
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
1357
|
-
return contents;
|
|
1358
|
-
};
|
|
1359
|
-
exports.de_DescribeGatewayRouteCommand = de_DescribeGatewayRouteCommand;
|
|
1360
|
-
const de_DescribeGatewayRouteCommandError = async (output, context) => {
|
|
1361
|
-
const parsedOutput = {
|
|
1362
|
-
...output,
|
|
1363
|
-
body: await parseErrorBody(output.body, context),
|
|
1364
|
-
};
|
|
1365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
|
-
switch (errorCode) {
|
|
1367
|
-
case "BadRequestException":
|
|
1368
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1369
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "ForbiddenException":
|
|
1371
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1372
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "InternalServerErrorException":
|
|
1374
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1375
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "NotFoundException":
|
|
1377
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1378
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ServiceUnavailableException":
|
|
1380
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1381
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "TooManyRequestsException":
|
|
1383
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1384
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1385
|
-
default:
|
|
1386
|
-
const parsedBody = parsedOutput.body;
|
|
1387
|
-
return throwDefaultError({
|
|
1388
|
-
output,
|
|
1389
|
-
parsedBody,
|
|
1390
|
-
errorCode,
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
};
|
|
1394
|
-
const de_DescribeMeshCommand = async (output, context) => {
|
|
1395
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1396
|
-
return de_DescribeMeshCommandError(output, context);
|
|
1397
|
-
}
|
|
1398
|
-
const contents = (0, smithy_client_1.map)({
|
|
1399
|
-
$metadata: deserializeMetadata(output),
|
|
1400
|
-
});
|
|
1401
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1402
|
-
contents.mesh = de_MeshData(data, context);
|
|
1403
|
-
return contents;
|
|
1404
|
-
};
|
|
1405
|
-
exports.de_DescribeMeshCommand = de_DescribeMeshCommand;
|
|
1406
|
-
const de_DescribeMeshCommandError = async (output, context) => {
|
|
1407
|
-
const parsedOutput = {
|
|
1408
|
-
...output,
|
|
1409
|
-
body: await parseErrorBody(output.body, context),
|
|
1410
|
-
};
|
|
1411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
-
switch (errorCode) {
|
|
1413
|
-
case "BadRequestException":
|
|
1414
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1415
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ForbiddenException":
|
|
1417
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1418
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "InternalServerErrorException":
|
|
1420
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1421
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "NotFoundException":
|
|
1423
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1424
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ServiceUnavailableException":
|
|
1426
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1427
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "TooManyRequestsException":
|
|
1429
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1430
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1431
|
-
default:
|
|
1432
|
-
const parsedBody = parsedOutput.body;
|
|
1433
|
-
return throwDefaultError({
|
|
1434
|
-
output,
|
|
1435
|
-
parsedBody,
|
|
1436
|
-
errorCode,
|
|
1437
|
-
});
|
|
1438
|
-
}
|
|
1439
|
-
};
|
|
1440
|
-
const de_DescribeRouteCommand = async (output, context) => {
|
|
1441
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1442
|
-
return de_DescribeRouteCommandError(output, context);
|
|
1443
|
-
}
|
|
1444
|
-
const contents = (0, smithy_client_1.map)({
|
|
1445
|
-
$metadata: deserializeMetadata(output),
|
|
1446
|
-
});
|
|
1447
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1448
|
-
contents.route = de_RouteData(data, context);
|
|
1449
|
-
return contents;
|
|
1450
|
-
};
|
|
1451
|
-
exports.de_DescribeRouteCommand = de_DescribeRouteCommand;
|
|
1452
|
-
const de_DescribeRouteCommandError = async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context),
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "BadRequestException":
|
|
1460
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1461
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ForbiddenException":
|
|
1463
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1464
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "InternalServerErrorException":
|
|
1466
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1467
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "NotFoundException":
|
|
1469
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1470
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ServiceUnavailableException":
|
|
1472
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1473
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "TooManyRequestsException":
|
|
1475
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1476
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1477
|
-
default:
|
|
1478
|
-
const parsedBody = parsedOutput.body;
|
|
1479
|
-
return throwDefaultError({
|
|
1480
|
-
output,
|
|
1481
|
-
parsedBody,
|
|
1482
|
-
errorCode,
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
const de_DescribeVirtualGatewayCommand = async (output, context) => {
|
|
1487
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1488
|
-
return de_DescribeVirtualGatewayCommandError(output, context);
|
|
1489
|
-
}
|
|
1490
|
-
const contents = (0, smithy_client_1.map)({
|
|
1491
|
-
$metadata: deserializeMetadata(output),
|
|
1492
|
-
});
|
|
1493
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1494
|
-
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
1495
|
-
return contents;
|
|
1496
|
-
};
|
|
1497
|
-
exports.de_DescribeVirtualGatewayCommand = de_DescribeVirtualGatewayCommand;
|
|
1498
|
-
const de_DescribeVirtualGatewayCommandError = async (output, context) => {
|
|
1499
|
-
const parsedOutput = {
|
|
1500
|
-
...output,
|
|
1501
|
-
body: await parseErrorBody(output.body, context),
|
|
1502
|
-
};
|
|
1503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
|
-
switch (errorCode) {
|
|
1505
|
-
case "BadRequestException":
|
|
1506
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1507
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ForbiddenException":
|
|
1509
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1510
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "InternalServerErrorException":
|
|
1512
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1513
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "NotFoundException":
|
|
1515
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1516
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "ServiceUnavailableException":
|
|
1518
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1519
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "TooManyRequestsException":
|
|
1521
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1522
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1523
|
-
default:
|
|
1524
|
-
const parsedBody = parsedOutput.body;
|
|
1525
|
-
return throwDefaultError({
|
|
1526
|
-
output,
|
|
1527
|
-
parsedBody,
|
|
1528
|
-
errorCode,
|
|
1529
|
-
});
|
|
1530
|
-
}
|
|
1531
|
-
};
|
|
1532
|
-
const de_DescribeVirtualNodeCommand = async (output, context) => {
|
|
1533
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1534
|
-
return de_DescribeVirtualNodeCommandError(output, context);
|
|
1535
|
-
}
|
|
1536
|
-
const contents = (0, smithy_client_1.map)({
|
|
1537
|
-
$metadata: deserializeMetadata(output),
|
|
1538
|
-
});
|
|
1539
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1540
|
-
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
1541
|
-
return contents;
|
|
1542
|
-
};
|
|
1543
|
-
exports.de_DescribeVirtualNodeCommand = de_DescribeVirtualNodeCommand;
|
|
1544
|
-
const de_DescribeVirtualNodeCommandError = async (output, context) => {
|
|
1545
|
-
const parsedOutput = {
|
|
1546
|
-
...output,
|
|
1547
|
-
body: await parseErrorBody(output.body, context),
|
|
1548
|
-
};
|
|
1549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
|
-
switch (errorCode) {
|
|
1551
|
-
case "BadRequestException":
|
|
1552
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1553
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "ForbiddenException":
|
|
1555
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1556
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "InternalServerErrorException":
|
|
1558
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1559
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "NotFoundException":
|
|
1561
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1562
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ServiceUnavailableException":
|
|
1564
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1565
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "TooManyRequestsException":
|
|
1567
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1568
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1569
|
-
default:
|
|
1570
|
-
const parsedBody = parsedOutput.body;
|
|
1571
|
-
return throwDefaultError({
|
|
1572
|
-
output,
|
|
1573
|
-
parsedBody,
|
|
1574
|
-
errorCode,
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
};
|
|
1578
|
-
const de_DescribeVirtualRouterCommand = async (output, context) => {
|
|
1579
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1580
|
-
return de_DescribeVirtualRouterCommandError(output, context);
|
|
1581
|
-
}
|
|
1582
|
-
const contents = (0, smithy_client_1.map)({
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
});
|
|
1585
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1586
|
-
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
1587
|
-
return contents;
|
|
1588
|
-
};
|
|
1589
|
-
exports.de_DescribeVirtualRouterCommand = de_DescribeVirtualRouterCommand;
|
|
1590
|
-
const de_DescribeVirtualRouterCommandError = async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context),
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "BadRequestException":
|
|
1598
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1599
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "ForbiddenException":
|
|
1601
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1602
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "InternalServerErrorException":
|
|
1604
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1605
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "NotFoundException":
|
|
1607
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1608
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "ServiceUnavailableException":
|
|
1610
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1611
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1612
|
-
case "TooManyRequestsException":
|
|
1613
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1614
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1615
|
-
default:
|
|
1616
|
-
const parsedBody = parsedOutput.body;
|
|
1617
|
-
return throwDefaultError({
|
|
1618
|
-
output,
|
|
1619
|
-
parsedBody,
|
|
1620
|
-
errorCode,
|
|
1621
|
-
});
|
|
1622
|
-
}
|
|
1623
|
-
};
|
|
1624
|
-
const de_DescribeVirtualServiceCommand = async (output, context) => {
|
|
1625
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1626
|
-
return de_DescribeVirtualServiceCommandError(output, context);
|
|
1627
|
-
}
|
|
1628
|
-
const contents = (0, smithy_client_1.map)({
|
|
1629
|
-
$metadata: deserializeMetadata(output),
|
|
1630
|
-
});
|
|
1631
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1632
|
-
contents.virtualService = de_VirtualServiceData(data, context);
|
|
1633
|
-
return contents;
|
|
1634
|
-
};
|
|
1635
|
-
exports.de_DescribeVirtualServiceCommand = de_DescribeVirtualServiceCommand;
|
|
1636
|
-
const de_DescribeVirtualServiceCommandError = async (output, context) => {
|
|
1637
|
-
const parsedOutput = {
|
|
1638
|
-
...output,
|
|
1639
|
-
body: await parseErrorBody(output.body, context),
|
|
1640
|
-
};
|
|
1641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
|
-
switch (errorCode) {
|
|
1643
|
-
case "BadRequestException":
|
|
1644
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1645
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ForbiddenException":
|
|
1647
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1648
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "InternalServerErrorException":
|
|
1650
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1651
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "NotFoundException":
|
|
1653
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1654
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "ServiceUnavailableException":
|
|
1656
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1657
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "TooManyRequestsException":
|
|
1659
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1660
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1661
|
-
default:
|
|
1662
|
-
const parsedBody = parsedOutput.body;
|
|
1663
|
-
return throwDefaultError({
|
|
1664
|
-
output,
|
|
1665
|
-
parsedBody,
|
|
1666
|
-
errorCode,
|
|
1667
|
-
});
|
|
1668
|
-
}
|
|
1669
|
-
};
|
|
1670
|
-
const de_ListGatewayRoutesCommand = async (output, context) => {
|
|
1671
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
|
-
return de_ListGatewayRoutesCommandError(output, context);
|
|
1673
|
-
}
|
|
1674
|
-
const contents = (0, smithy_client_1.map)({
|
|
1675
|
-
$metadata: deserializeMetadata(output),
|
|
1676
|
-
});
|
|
1677
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1678
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1679
|
-
gatewayRoutes: (_) => de_GatewayRouteList(_, context),
|
|
1680
|
-
nextToken: smithy_client_1.expectString,
|
|
1681
|
-
});
|
|
1682
|
-
Object.assign(contents, doc);
|
|
1683
|
-
return contents;
|
|
1684
|
-
};
|
|
1685
|
-
exports.de_ListGatewayRoutesCommand = de_ListGatewayRoutesCommand;
|
|
1686
|
-
const de_ListGatewayRoutesCommandError = async (output, context) => {
|
|
1687
|
-
const parsedOutput = {
|
|
1688
|
-
...output,
|
|
1689
|
-
body: await parseErrorBody(output.body, context),
|
|
1690
|
-
};
|
|
1691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
|
-
switch (errorCode) {
|
|
1693
|
-
case "BadRequestException":
|
|
1694
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1695
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "ForbiddenException":
|
|
1697
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1698
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "InternalServerErrorException":
|
|
1700
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1701
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "NotFoundException":
|
|
1703
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1704
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "ServiceUnavailableException":
|
|
1706
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1707
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "TooManyRequestsException":
|
|
1709
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1710
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1711
|
-
default:
|
|
1712
|
-
const parsedBody = parsedOutput.body;
|
|
1713
|
-
return throwDefaultError({
|
|
1714
|
-
output,
|
|
1715
|
-
parsedBody,
|
|
1716
|
-
errorCode,
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
|
-
};
|
|
1720
|
-
const de_ListMeshesCommand = async (output, context) => {
|
|
1721
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1722
|
-
return de_ListMeshesCommandError(output, context);
|
|
1723
|
-
}
|
|
1724
|
-
const contents = (0, smithy_client_1.map)({
|
|
1725
|
-
$metadata: deserializeMetadata(output),
|
|
1726
|
-
});
|
|
1727
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1728
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1729
|
-
meshes: (_) => de_MeshList(_, context),
|
|
1730
|
-
nextToken: smithy_client_1.expectString,
|
|
1731
|
-
});
|
|
1732
|
-
Object.assign(contents, doc);
|
|
1733
|
-
return contents;
|
|
1734
|
-
};
|
|
1735
|
-
exports.de_ListMeshesCommand = de_ListMeshesCommand;
|
|
1736
|
-
const de_ListMeshesCommandError = async (output, context) => {
|
|
1737
|
-
const parsedOutput = {
|
|
1738
|
-
...output,
|
|
1739
|
-
body: await parseErrorBody(output.body, context),
|
|
1740
|
-
};
|
|
1741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
-
switch (errorCode) {
|
|
1743
|
-
case "BadRequestException":
|
|
1744
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1745
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "ForbiddenException":
|
|
1747
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1748
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "InternalServerErrorException":
|
|
1750
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1751
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "NotFoundException":
|
|
1753
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1754
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "ServiceUnavailableException":
|
|
1756
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1757
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "TooManyRequestsException":
|
|
1759
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1760
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1761
|
-
default:
|
|
1762
|
-
const parsedBody = parsedOutput.body;
|
|
1763
|
-
return throwDefaultError({
|
|
1764
|
-
output,
|
|
1765
|
-
parsedBody,
|
|
1766
|
-
errorCode,
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
};
|
|
1770
|
-
const de_ListRoutesCommand = async (output, context) => {
|
|
1771
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1772
|
-
return de_ListRoutesCommandError(output, context);
|
|
1773
|
-
}
|
|
1774
|
-
const contents = (0, smithy_client_1.map)({
|
|
1775
|
-
$metadata: deserializeMetadata(output),
|
|
1776
|
-
});
|
|
1777
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1778
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1779
|
-
nextToken: smithy_client_1.expectString,
|
|
1780
|
-
routes: (_) => de_RouteList(_, context),
|
|
1781
|
-
});
|
|
1782
|
-
Object.assign(contents, doc);
|
|
1783
|
-
return contents;
|
|
1784
|
-
};
|
|
1785
|
-
exports.de_ListRoutesCommand = de_ListRoutesCommand;
|
|
1786
|
-
const de_ListRoutesCommandError = async (output, context) => {
|
|
1787
|
-
const parsedOutput = {
|
|
1788
|
-
...output,
|
|
1789
|
-
body: await parseErrorBody(output.body, context),
|
|
1790
|
-
};
|
|
1791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
-
switch (errorCode) {
|
|
1793
|
-
case "BadRequestException":
|
|
1794
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1795
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ForbiddenException":
|
|
1797
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1798
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "InternalServerErrorException":
|
|
1800
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1801
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "NotFoundException":
|
|
1803
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1804
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "ServiceUnavailableException":
|
|
1806
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1807
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "TooManyRequestsException":
|
|
1809
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1810
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1811
|
-
default:
|
|
1812
|
-
const parsedBody = parsedOutput.body;
|
|
1813
|
-
return throwDefaultError({
|
|
1814
|
-
output,
|
|
1815
|
-
parsedBody,
|
|
1816
|
-
errorCode,
|
|
1817
|
-
});
|
|
1818
|
-
}
|
|
1819
|
-
};
|
|
1820
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1821
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1822
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1823
|
-
}
|
|
1824
|
-
const contents = (0, smithy_client_1.map)({
|
|
1825
|
-
$metadata: deserializeMetadata(output),
|
|
1826
|
-
});
|
|
1827
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1828
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1829
|
-
nextToken: smithy_client_1.expectString,
|
|
1830
|
-
tags: smithy_client_1._json,
|
|
1831
|
-
});
|
|
1832
|
-
Object.assign(contents, doc);
|
|
1833
|
-
return contents;
|
|
1834
|
-
};
|
|
1835
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1836
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1837
|
-
const parsedOutput = {
|
|
1838
|
-
...output,
|
|
1839
|
-
body: await parseErrorBody(output.body, context),
|
|
1840
|
-
};
|
|
1841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
-
switch (errorCode) {
|
|
1843
|
-
case "BadRequestException":
|
|
1844
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1845
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "ForbiddenException":
|
|
1847
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1848
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "InternalServerErrorException":
|
|
1850
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1851
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "NotFoundException":
|
|
1853
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1854
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ServiceUnavailableException":
|
|
1856
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1857
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "TooManyRequestsException":
|
|
1859
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1860
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1861
|
-
default:
|
|
1862
|
-
const parsedBody = parsedOutput.body;
|
|
1863
|
-
return throwDefaultError({
|
|
1864
|
-
output,
|
|
1865
|
-
parsedBody,
|
|
1866
|
-
errorCode,
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
};
|
|
1870
|
-
const de_ListVirtualGatewaysCommand = async (output, context) => {
|
|
1871
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1872
|
-
return de_ListVirtualGatewaysCommandError(output, context);
|
|
1873
|
-
}
|
|
1874
|
-
const contents = (0, smithy_client_1.map)({
|
|
1875
|
-
$metadata: deserializeMetadata(output),
|
|
1876
|
-
});
|
|
1877
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1878
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1879
|
-
nextToken: smithy_client_1.expectString,
|
|
1880
|
-
virtualGateways: (_) => de_VirtualGatewayList(_, context),
|
|
1881
|
-
});
|
|
1882
|
-
Object.assign(contents, doc);
|
|
1883
|
-
return contents;
|
|
1884
|
-
};
|
|
1885
|
-
exports.de_ListVirtualGatewaysCommand = de_ListVirtualGatewaysCommand;
|
|
1886
|
-
const de_ListVirtualGatewaysCommandError = async (output, context) => {
|
|
1887
|
-
const parsedOutput = {
|
|
1888
|
-
...output,
|
|
1889
|
-
body: await parseErrorBody(output.body, context),
|
|
1890
|
-
};
|
|
1891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
|
-
switch (errorCode) {
|
|
1893
|
-
case "BadRequestException":
|
|
1894
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1895
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ForbiddenException":
|
|
1897
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1898
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "InternalServerErrorException":
|
|
1900
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1901
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "NotFoundException":
|
|
1903
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1904
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "ServiceUnavailableException":
|
|
1906
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1907
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "TooManyRequestsException":
|
|
1909
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1910
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1911
|
-
default:
|
|
1912
|
-
const parsedBody = parsedOutput.body;
|
|
1913
|
-
return throwDefaultError({
|
|
1914
|
-
output,
|
|
1915
|
-
parsedBody,
|
|
1916
|
-
errorCode,
|
|
1917
|
-
});
|
|
1918
|
-
}
|
|
1919
|
-
};
|
|
1920
|
-
const de_ListVirtualNodesCommand = async (output, context) => {
|
|
1921
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
|
-
return de_ListVirtualNodesCommandError(output, context);
|
|
1923
|
-
}
|
|
1924
|
-
const contents = (0, smithy_client_1.map)({
|
|
1925
|
-
$metadata: deserializeMetadata(output),
|
|
1926
|
-
});
|
|
1927
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1928
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1929
|
-
nextToken: smithy_client_1.expectString,
|
|
1930
|
-
virtualNodes: (_) => de_VirtualNodeList(_, context),
|
|
1931
|
-
});
|
|
1932
|
-
Object.assign(contents, doc);
|
|
1933
|
-
return contents;
|
|
1934
|
-
};
|
|
1935
|
-
exports.de_ListVirtualNodesCommand = de_ListVirtualNodesCommand;
|
|
1936
|
-
const de_ListVirtualNodesCommandError = async (output, context) => {
|
|
1937
|
-
const parsedOutput = {
|
|
1938
|
-
...output,
|
|
1939
|
-
body: await parseErrorBody(output.body, context),
|
|
1940
|
-
};
|
|
1941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1942
|
-
switch (errorCode) {
|
|
1943
|
-
case "BadRequestException":
|
|
1944
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1945
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "ForbiddenException":
|
|
1947
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1948
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "InternalServerErrorException":
|
|
1950
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
1951
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "NotFoundException":
|
|
1953
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
1954
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ServiceUnavailableException":
|
|
1956
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
1957
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "TooManyRequestsException":
|
|
1959
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
1960
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1961
|
-
default:
|
|
1962
|
-
const parsedBody = parsedOutput.body;
|
|
1963
|
-
return throwDefaultError({
|
|
1964
|
-
output,
|
|
1965
|
-
parsedBody,
|
|
1966
|
-
errorCode,
|
|
1967
|
-
});
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
|
-
const de_ListVirtualRoutersCommand = async (output, context) => {
|
|
1971
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
|
-
return de_ListVirtualRoutersCommandError(output, context);
|
|
1973
|
-
}
|
|
1974
|
-
const contents = (0, smithy_client_1.map)({
|
|
1975
|
-
$metadata: deserializeMetadata(output),
|
|
1976
|
-
});
|
|
1977
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1978
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1979
|
-
nextToken: smithy_client_1.expectString,
|
|
1980
|
-
virtualRouters: (_) => de_VirtualRouterList(_, context),
|
|
1981
|
-
});
|
|
1982
|
-
Object.assign(contents, doc);
|
|
1983
|
-
return contents;
|
|
1984
|
-
};
|
|
1985
|
-
exports.de_ListVirtualRoutersCommand = de_ListVirtualRoutersCommand;
|
|
1986
|
-
const de_ListVirtualRoutersCommandError = async (output, context) => {
|
|
1987
|
-
const parsedOutput = {
|
|
1988
|
-
...output,
|
|
1989
|
-
body: await parseErrorBody(output.body, context),
|
|
1990
|
-
};
|
|
1991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
|
-
switch (errorCode) {
|
|
1993
|
-
case "BadRequestException":
|
|
1994
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
1995
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "ForbiddenException":
|
|
1997
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
1998
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "InternalServerErrorException":
|
|
2000
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2001
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "NotFoundException":
|
|
2003
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2004
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ServiceUnavailableException":
|
|
2006
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2007
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "TooManyRequestsException":
|
|
2009
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2010
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2011
|
-
default:
|
|
2012
|
-
const parsedBody = parsedOutput.body;
|
|
2013
|
-
return throwDefaultError({
|
|
2014
|
-
output,
|
|
2015
|
-
parsedBody,
|
|
2016
|
-
errorCode,
|
|
2017
|
-
});
|
|
2018
|
-
}
|
|
2019
|
-
};
|
|
2020
|
-
const de_ListVirtualServicesCommand = async (output, context) => {
|
|
2021
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2022
|
-
return de_ListVirtualServicesCommandError(output, context);
|
|
2023
|
-
}
|
|
2024
|
-
const contents = (0, smithy_client_1.map)({
|
|
2025
|
-
$metadata: deserializeMetadata(output),
|
|
2026
|
-
});
|
|
2027
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2028
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2029
|
-
nextToken: smithy_client_1.expectString,
|
|
2030
|
-
virtualServices: (_) => de_VirtualServiceList(_, context),
|
|
2031
|
-
});
|
|
2032
|
-
Object.assign(contents, doc);
|
|
2033
|
-
return contents;
|
|
2034
|
-
};
|
|
2035
|
-
exports.de_ListVirtualServicesCommand = de_ListVirtualServicesCommand;
|
|
2036
|
-
const de_ListVirtualServicesCommandError = async (output, context) => {
|
|
2037
|
-
const parsedOutput = {
|
|
2038
|
-
...output,
|
|
2039
|
-
body: await parseErrorBody(output.body, context),
|
|
2040
|
-
};
|
|
2041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
|
-
switch (errorCode) {
|
|
2043
|
-
case "BadRequestException":
|
|
2044
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2045
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "ForbiddenException":
|
|
2047
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2048
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "InternalServerErrorException":
|
|
2050
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2051
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "NotFoundException":
|
|
2053
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2054
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ServiceUnavailableException":
|
|
2056
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2057
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "TooManyRequestsException":
|
|
2059
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2060
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2061
|
-
default:
|
|
2062
|
-
const parsedBody = parsedOutput.body;
|
|
2063
|
-
return throwDefaultError({
|
|
2064
|
-
output,
|
|
2065
|
-
parsedBody,
|
|
2066
|
-
errorCode,
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
|
-
};
|
|
2070
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2071
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2072
|
-
return de_TagResourceCommandError(output, context);
|
|
2073
|
-
}
|
|
2074
|
-
const contents = (0, smithy_client_1.map)({
|
|
2075
|
-
$metadata: deserializeMetadata(output),
|
|
2076
|
-
});
|
|
2077
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2078
|
-
return contents;
|
|
2079
|
-
};
|
|
2080
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2081
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2082
|
-
const parsedOutput = {
|
|
2083
|
-
...output,
|
|
2084
|
-
body: await parseErrorBody(output.body, context),
|
|
2085
|
-
};
|
|
2086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
|
-
switch (errorCode) {
|
|
2088
|
-
case "BadRequestException":
|
|
2089
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2090
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "ForbiddenException":
|
|
2092
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2093
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "InternalServerErrorException":
|
|
2095
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2096
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "NotFoundException":
|
|
2098
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2099
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "ServiceUnavailableException":
|
|
2101
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2102
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "TooManyRequestsException":
|
|
2104
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2105
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "TooManyTagsException":
|
|
2107
|
-
case "com.amazonaws.appmesh#TooManyTagsException":
|
|
2108
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2109
|
-
default:
|
|
2110
|
-
const parsedBody = parsedOutput.body;
|
|
2111
|
-
return throwDefaultError({
|
|
2112
|
-
output,
|
|
2113
|
-
parsedBody,
|
|
2114
|
-
errorCode,
|
|
2115
|
-
});
|
|
2116
|
-
}
|
|
2117
|
-
};
|
|
2118
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2119
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2120
|
-
return de_UntagResourceCommandError(output, context);
|
|
2121
|
-
}
|
|
2122
|
-
const contents = (0, smithy_client_1.map)({
|
|
2123
|
-
$metadata: deserializeMetadata(output),
|
|
2124
|
-
});
|
|
2125
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2126
|
-
return contents;
|
|
2127
|
-
};
|
|
2128
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2129
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2130
|
-
const parsedOutput = {
|
|
2131
|
-
...output,
|
|
2132
|
-
body: await parseErrorBody(output.body, context),
|
|
2133
|
-
};
|
|
2134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
-
switch (errorCode) {
|
|
2136
|
-
case "BadRequestException":
|
|
2137
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2138
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "ForbiddenException":
|
|
2140
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2141
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "InternalServerErrorException":
|
|
2143
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2144
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "NotFoundException":
|
|
2146
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2147
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ServiceUnavailableException":
|
|
2149
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2150
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "TooManyRequestsException":
|
|
2152
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2153
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2154
|
-
default:
|
|
2155
|
-
const parsedBody = parsedOutput.body;
|
|
2156
|
-
return throwDefaultError({
|
|
2157
|
-
output,
|
|
2158
|
-
parsedBody,
|
|
2159
|
-
errorCode,
|
|
2160
|
-
});
|
|
2161
|
-
}
|
|
2162
|
-
};
|
|
2163
|
-
const de_UpdateGatewayRouteCommand = async (output, context) => {
|
|
2164
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2165
|
-
return de_UpdateGatewayRouteCommandError(output, context);
|
|
2166
|
-
}
|
|
2167
|
-
const contents = (0, smithy_client_1.map)({
|
|
2168
|
-
$metadata: deserializeMetadata(output),
|
|
2169
|
-
});
|
|
2170
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2171
|
-
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
2172
|
-
return contents;
|
|
2173
|
-
};
|
|
2174
|
-
exports.de_UpdateGatewayRouteCommand = de_UpdateGatewayRouteCommand;
|
|
2175
|
-
const de_UpdateGatewayRouteCommandError = async (output, context) => {
|
|
2176
|
-
const parsedOutput = {
|
|
2177
|
-
...output,
|
|
2178
|
-
body: await parseErrorBody(output.body, context),
|
|
2179
|
-
};
|
|
2180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
|
-
switch (errorCode) {
|
|
2182
|
-
case "BadRequestException":
|
|
2183
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2184
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "ConflictException":
|
|
2186
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2187
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "ForbiddenException":
|
|
2189
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2190
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "InternalServerErrorException":
|
|
2192
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2193
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "LimitExceededException":
|
|
2195
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2196
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "NotFoundException":
|
|
2198
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2199
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ServiceUnavailableException":
|
|
2201
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2202
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "TooManyRequestsException":
|
|
2204
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2205
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2206
|
-
default:
|
|
2207
|
-
const parsedBody = parsedOutput.body;
|
|
2208
|
-
return throwDefaultError({
|
|
2209
|
-
output,
|
|
2210
|
-
parsedBody,
|
|
2211
|
-
errorCode,
|
|
2212
|
-
});
|
|
2213
|
-
}
|
|
2214
|
-
};
|
|
2215
|
-
const de_UpdateMeshCommand = async (output, context) => {
|
|
2216
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2217
|
-
return de_UpdateMeshCommandError(output, context);
|
|
2218
|
-
}
|
|
2219
|
-
const contents = (0, smithy_client_1.map)({
|
|
2220
|
-
$metadata: deserializeMetadata(output),
|
|
2221
|
-
});
|
|
2222
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2223
|
-
contents.mesh = de_MeshData(data, context);
|
|
2224
|
-
return contents;
|
|
2225
|
-
};
|
|
2226
|
-
exports.de_UpdateMeshCommand = de_UpdateMeshCommand;
|
|
2227
|
-
const de_UpdateMeshCommandError = async (output, context) => {
|
|
2228
|
-
const parsedOutput = {
|
|
2229
|
-
...output,
|
|
2230
|
-
body: await parseErrorBody(output.body, context),
|
|
2231
|
-
};
|
|
2232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2233
|
-
switch (errorCode) {
|
|
2234
|
-
case "BadRequestException":
|
|
2235
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2236
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "ConflictException":
|
|
2238
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2239
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "ForbiddenException":
|
|
2241
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2242
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2243
|
-
case "InternalServerErrorException":
|
|
2244
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2245
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2246
|
-
case "NotFoundException":
|
|
2247
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2248
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2249
|
-
case "ServiceUnavailableException":
|
|
2250
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2251
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "TooManyRequestsException":
|
|
2253
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2254
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2255
|
-
default:
|
|
2256
|
-
const parsedBody = parsedOutput.body;
|
|
2257
|
-
return throwDefaultError({
|
|
2258
|
-
output,
|
|
2259
|
-
parsedBody,
|
|
2260
|
-
errorCode,
|
|
2261
|
-
});
|
|
2262
|
-
}
|
|
2263
|
-
};
|
|
2264
|
-
const de_UpdateRouteCommand = async (output, context) => {
|
|
2265
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2266
|
-
return de_UpdateRouteCommandError(output, context);
|
|
2267
|
-
}
|
|
2268
|
-
const contents = (0, smithy_client_1.map)({
|
|
2269
|
-
$metadata: deserializeMetadata(output),
|
|
2270
|
-
});
|
|
2271
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2272
|
-
contents.route = de_RouteData(data, context);
|
|
2273
|
-
return contents;
|
|
2274
|
-
};
|
|
2275
|
-
exports.de_UpdateRouteCommand = de_UpdateRouteCommand;
|
|
2276
|
-
const de_UpdateRouteCommandError = async (output, context) => {
|
|
2277
|
-
const parsedOutput = {
|
|
2278
|
-
...output,
|
|
2279
|
-
body: await parseErrorBody(output.body, context),
|
|
2280
|
-
};
|
|
2281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
|
-
switch (errorCode) {
|
|
2283
|
-
case "BadRequestException":
|
|
2284
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2285
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "ConflictException":
|
|
2287
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2288
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "ForbiddenException":
|
|
2290
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2291
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "InternalServerErrorException":
|
|
2293
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2294
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "LimitExceededException":
|
|
2296
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2297
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "NotFoundException":
|
|
2299
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2300
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "ServiceUnavailableException":
|
|
2302
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2303
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "TooManyRequestsException":
|
|
2305
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2306
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2307
|
-
default:
|
|
2308
|
-
const parsedBody = parsedOutput.body;
|
|
2309
|
-
return throwDefaultError({
|
|
2310
|
-
output,
|
|
2311
|
-
parsedBody,
|
|
2312
|
-
errorCode,
|
|
2313
|
-
});
|
|
2314
|
-
}
|
|
2315
|
-
};
|
|
2316
|
-
const de_UpdateVirtualGatewayCommand = async (output, context) => {
|
|
2317
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2318
|
-
return de_UpdateVirtualGatewayCommandError(output, context);
|
|
2319
|
-
}
|
|
2320
|
-
const contents = (0, smithy_client_1.map)({
|
|
2321
|
-
$metadata: deserializeMetadata(output),
|
|
2322
|
-
});
|
|
2323
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2324
|
-
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
2325
|
-
return contents;
|
|
2326
|
-
};
|
|
2327
|
-
exports.de_UpdateVirtualGatewayCommand = de_UpdateVirtualGatewayCommand;
|
|
2328
|
-
const de_UpdateVirtualGatewayCommandError = async (output, context) => {
|
|
2329
|
-
const parsedOutput = {
|
|
2330
|
-
...output,
|
|
2331
|
-
body: await parseErrorBody(output.body, context),
|
|
2332
|
-
};
|
|
2333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
|
-
switch (errorCode) {
|
|
2335
|
-
case "BadRequestException":
|
|
2336
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2337
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "ConflictException":
|
|
2339
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2340
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "ForbiddenException":
|
|
2342
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2343
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "InternalServerErrorException":
|
|
2345
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2346
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "LimitExceededException":
|
|
2348
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2349
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "NotFoundException":
|
|
2351
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2352
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "ServiceUnavailableException":
|
|
2354
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2355
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "TooManyRequestsException":
|
|
2357
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2358
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2359
|
-
default:
|
|
2360
|
-
const parsedBody = parsedOutput.body;
|
|
2361
|
-
return throwDefaultError({
|
|
2362
|
-
output,
|
|
2363
|
-
parsedBody,
|
|
2364
|
-
errorCode,
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
};
|
|
2368
|
-
const de_UpdateVirtualNodeCommand = async (output, context) => {
|
|
2369
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2370
|
-
return de_UpdateVirtualNodeCommandError(output, context);
|
|
2371
|
-
}
|
|
2372
|
-
const contents = (0, smithy_client_1.map)({
|
|
2373
|
-
$metadata: deserializeMetadata(output),
|
|
2374
|
-
});
|
|
2375
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2376
|
-
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
2377
|
-
return contents;
|
|
2378
|
-
};
|
|
2379
|
-
exports.de_UpdateVirtualNodeCommand = de_UpdateVirtualNodeCommand;
|
|
2380
|
-
const de_UpdateVirtualNodeCommandError = async (output, context) => {
|
|
2381
|
-
const parsedOutput = {
|
|
2382
|
-
...output,
|
|
2383
|
-
body: await parseErrorBody(output.body, context),
|
|
2384
|
-
};
|
|
2385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
|
-
switch (errorCode) {
|
|
2387
|
-
case "BadRequestException":
|
|
2388
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2389
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2390
|
-
case "ConflictException":
|
|
2391
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2392
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "ForbiddenException":
|
|
2394
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2395
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "InternalServerErrorException":
|
|
2397
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2398
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "LimitExceededException":
|
|
2400
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2401
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "NotFoundException":
|
|
2403
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2404
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "ServiceUnavailableException":
|
|
2406
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2407
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "TooManyRequestsException":
|
|
2409
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2410
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2411
|
-
default:
|
|
2412
|
-
const parsedBody = parsedOutput.body;
|
|
2413
|
-
return throwDefaultError({
|
|
2414
|
-
output,
|
|
2415
|
-
parsedBody,
|
|
2416
|
-
errorCode,
|
|
2417
|
-
});
|
|
2418
|
-
}
|
|
2419
|
-
};
|
|
2420
|
-
const de_UpdateVirtualRouterCommand = async (output, context) => {
|
|
2421
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2422
|
-
return de_UpdateVirtualRouterCommandError(output, context);
|
|
2423
|
-
}
|
|
2424
|
-
const contents = (0, smithy_client_1.map)({
|
|
2425
|
-
$metadata: deserializeMetadata(output),
|
|
2426
|
-
});
|
|
2427
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2428
|
-
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
2429
|
-
return contents;
|
|
2430
|
-
};
|
|
2431
|
-
exports.de_UpdateVirtualRouterCommand = de_UpdateVirtualRouterCommand;
|
|
2432
|
-
const de_UpdateVirtualRouterCommandError = async (output, context) => {
|
|
2433
|
-
const parsedOutput = {
|
|
2434
|
-
...output,
|
|
2435
|
-
body: await parseErrorBody(output.body, context),
|
|
2436
|
-
};
|
|
2437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2438
|
-
switch (errorCode) {
|
|
2439
|
-
case "BadRequestException":
|
|
2440
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2441
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ConflictException":
|
|
2443
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2444
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "ForbiddenException":
|
|
2446
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2447
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2448
|
-
case "InternalServerErrorException":
|
|
2449
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2450
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2451
|
-
case "LimitExceededException":
|
|
2452
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2453
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2454
|
-
case "NotFoundException":
|
|
2455
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2456
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2457
|
-
case "ServiceUnavailableException":
|
|
2458
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2459
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2460
|
-
case "TooManyRequestsException":
|
|
2461
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2462
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2463
|
-
default:
|
|
2464
|
-
const parsedBody = parsedOutput.body;
|
|
2465
|
-
return throwDefaultError({
|
|
2466
|
-
output,
|
|
2467
|
-
parsedBody,
|
|
2468
|
-
errorCode,
|
|
2469
|
-
});
|
|
2470
|
-
}
|
|
2471
|
-
};
|
|
2472
|
-
const de_UpdateVirtualServiceCommand = async (output, context) => {
|
|
2473
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2474
|
-
return de_UpdateVirtualServiceCommandError(output, context);
|
|
2475
|
-
}
|
|
2476
|
-
const contents = (0, smithy_client_1.map)({
|
|
2477
|
-
$metadata: deserializeMetadata(output),
|
|
2478
|
-
});
|
|
2479
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2480
|
-
contents.virtualService = de_VirtualServiceData(data, context);
|
|
2481
|
-
return contents;
|
|
2482
|
-
};
|
|
2483
|
-
exports.de_UpdateVirtualServiceCommand = de_UpdateVirtualServiceCommand;
|
|
2484
|
-
const de_UpdateVirtualServiceCommandError = async (output, context) => {
|
|
2485
|
-
const parsedOutput = {
|
|
2486
|
-
...output,
|
|
2487
|
-
body: await parseErrorBody(output.body, context),
|
|
2488
|
-
};
|
|
2489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2490
|
-
switch (errorCode) {
|
|
2491
|
-
case "BadRequestException":
|
|
2492
|
-
case "com.amazonaws.appmesh#BadRequestException":
|
|
2493
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "ConflictException":
|
|
2495
|
-
case "com.amazonaws.appmesh#ConflictException":
|
|
2496
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "ForbiddenException":
|
|
2498
|
-
case "com.amazonaws.appmesh#ForbiddenException":
|
|
2499
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2500
|
-
case "InternalServerErrorException":
|
|
2501
|
-
case "com.amazonaws.appmesh#InternalServerErrorException":
|
|
2502
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "LimitExceededException":
|
|
2504
|
-
case "com.amazonaws.appmesh#LimitExceededException":
|
|
2505
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "NotFoundException":
|
|
2507
|
-
case "com.amazonaws.appmesh#NotFoundException":
|
|
2508
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "ServiceUnavailableException":
|
|
2510
|
-
case "com.amazonaws.appmesh#ServiceUnavailableException":
|
|
2511
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "TooManyRequestsException":
|
|
2513
|
-
case "com.amazonaws.appmesh#TooManyRequestsException":
|
|
2514
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2515
|
-
default:
|
|
2516
|
-
const parsedBody = parsedOutput.body;
|
|
2517
|
-
return throwDefaultError({
|
|
2518
|
-
output,
|
|
2519
|
-
parsedBody,
|
|
2520
|
-
errorCode,
|
|
2521
|
-
});
|
|
2522
|
-
}
|
|
2523
|
-
};
|
|
2524
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(AppMeshServiceException_1.AppMeshServiceException);
|
|
2525
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2526
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2527
|
-
const data = parsedOutput.body;
|
|
2528
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2529
|
-
message: smithy_client_1.expectString,
|
|
2530
|
-
});
|
|
2531
|
-
Object.assign(contents, doc);
|
|
2532
|
-
const exception = new models_0_1.BadRequestException({
|
|
2533
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2534
|
-
...contents,
|
|
2535
|
-
});
|
|
2536
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2537
|
-
};
|
|
2538
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2539
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2540
|
-
const data = parsedOutput.body;
|
|
2541
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2542
|
-
message: smithy_client_1.expectString,
|
|
2543
|
-
});
|
|
2544
|
-
Object.assign(contents, doc);
|
|
2545
|
-
const exception = new models_0_1.ConflictException({
|
|
2546
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2547
|
-
...contents,
|
|
2548
|
-
});
|
|
2549
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2550
|
-
};
|
|
2551
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2552
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2553
|
-
const data = parsedOutput.body;
|
|
2554
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2555
|
-
message: smithy_client_1.expectString,
|
|
2556
|
-
});
|
|
2557
|
-
Object.assign(contents, doc);
|
|
2558
|
-
const exception = new models_0_1.ForbiddenException({
|
|
2559
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2560
|
-
...contents,
|
|
2561
|
-
});
|
|
2562
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2563
|
-
};
|
|
2564
|
-
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2565
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2566
|
-
const data = parsedOutput.body;
|
|
2567
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2568
|
-
message: smithy_client_1.expectString,
|
|
2569
|
-
});
|
|
2570
|
-
Object.assign(contents, doc);
|
|
2571
|
-
const exception = new models_0_1.InternalServerErrorException({
|
|
2572
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2573
|
-
...contents,
|
|
2574
|
-
});
|
|
2575
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2576
|
-
};
|
|
2577
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2578
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2579
|
-
const data = parsedOutput.body;
|
|
2580
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2581
|
-
message: smithy_client_1.expectString,
|
|
2582
|
-
});
|
|
2583
|
-
Object.assign(contents, doc);
|
|
2584
|
-
const exception = new models_0_1.LimitExceededException({
|
|
2585
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2586
|
-
...contents,
|
|
2587
|
-
});
|
|
2588
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2589
|
-
};
|
|
2590
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2591
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2592
|
-
const data = parsedOutput.body;
|
|
2593
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2594
|
-
message: smithy_client_1.expectString,
|
|
2595
|
-
});
|
|
2596
|
-
Object.assign(contents, doc);
|
|
2597
|
-
const exception = new models_0_1.NotFoundException({
|
|
2598
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2599
|
-
...contents,
|
|
2600
|
-
});
|
|
2601
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2602
|
-
};
|
|
2603
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
2604
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2605
|
-
const data = parsedOutput.body;
|
|
2606
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2607
|
-
message: smithy_client_1.expectString,
|
|
2608
|
-
});
|
|
2609
|
-
Object.assign(contents, doc);
|
|
2610
|
-
const exception = new models_0_1.ResourceInUseException({
|
|
2611
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2612
|
-
...contents,
|
|
2613
|
-
});
|
|
2614
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2615
|
-
};
|
|
2616
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2617
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2618
|
-
const data = parsedOutput.body;
|
|
2619
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2620
|
-
message: smithy_client_1.expectString,
|
|
2621
|
-
});
|
|
2622
|
-
Object.assign(contents, doc);
|
|
2623
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
2624
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2625
|
-
...contents,
|
|
2626
|
-
});
|
|
2627
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2628
|
-
};
|
|
2629
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2630
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2631
|
-
const data = parsedOutput.body;
|
|
2632
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2633
|
-
message: smithy_client_1.expectString,
|
|
2634
|
-
});
|
|
2635
|
-
Object.assign(contents, doc);
|
|
2636
|
-
const exception = new models_0_1.TooManyRequestsException({
|
|
2637
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2638
|
-
...contents,
|
|
2639
|
-
});
|
|
2640
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2641
|
-
};
|
|
2642
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2643
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2644
|
-
const data = parsedOutput.body;
|
|
2645
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2646
|
-
message: smithy_client_1.expectString,
|
|
2647
|
-
});
|
|
2648
|
-
Object.assign(contents, doc);
|
|
2649
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
2650
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2651
|
-
...contents,
|
|
2652
|
-
});
|
|
2653
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2654
|
-
};
|
|
2655
|
-
const de_GatewayRouteData = (output, context) => {
|
|
2656
|
-
return (0, smithy_client_1.take)(output, {
|
|
2657
|
-
gatewayRouteName: smithy_client_1.expectString,
|
|
2658
|
-
meshName: smithy_client_1.expectString,
|
|
2659
|
-
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2660
|
-
spec: smithy_client_1._json,
|
|
2661
|
-
status: smithy_client_1._json,
|
|
2662
|
-
virtualGatewayName: smithy_client_1.expectString,
|
|
2663
|
-
});
|
|
2664
|
-
};
|
|
2665
|
-
const de_GatewayRouteList = (output, context) => {
|
|
2666
|
-
const retVal = (output || [])
|
|
2667
|
-
.filter((e) => e != null)
|
|
2668
|
-
.map((entry) => {
|
|
2669
|
-
return de_GatewayRouteRef(entry, context);
|
|
2670
|
-
});
|
|
2671
|
-
return retVal;
|
|
2672
|
-
};
|
|
2673
|
-
const de_GatewayRouteRef = (output, context) => {
|
|
2674
|
-
return (0, smithy_client_1.take)(output, {
|
|
2675
|
-
arn: smithy_client_1.expectString,
|
|
2676
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2677
|
-
gatewayRouteName: smithy_client_1.expectString,
|
|
2678
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2679
|
-
meshName: smithy_client_1.expectString,
|
|
2680
|
-
meshOwner: smithy_client_1.expectString,
|
|
2681
|
-
resourceOwner: smithy_client_1.expectString,
|
|
2682
|
-
version: smithy_client_1.expectLong,
|
|
2683
|
-
virtualGatewayName: smithy_client_1.expectString,
|
|
2684
|
-
});
|
|
2685
|
-
};
|
|
2686
|
-
const de_MeshData = (output, context) => {
|
|
2687
|
-
return (0, smithy_client_1.take)(output, {
|
|
2688
|
-
meshName: smithy_client_1.expectString,
|
|
2689
|
-
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2690
|
-
spec: smithy_client_1._json,
|
|
2691
|
-
status: smithy_client_1._json,
|
|
2692
|
-
});
|
|
2693
|
-
};
|
|
2694
|
-
const de_MeshList = (output, context) => {
|
|
2695
|
-
const retVal = (output || [])
|
|
2696
|
-
.filter((e) => e != null)
|
|
2697
|
-
.map((entry) => {
|
|
2698
|
-
return de_MeshRef(entry, context);
|
|
2699
|
-
});
|
|
2700
|
-
return retVal;
|
|
2701
|
-
};
|
|
2702
|
-
const de_MeshRef = (output, context) => {
|
|
2703
|
-
return (0, smithy_client_1.take)(output, {
|
|
2704
|
-
arn: smithy_client_1.expectString,
|
|
2705
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2706
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2707
|
-
meshName: smithy_client_1.expectString,
|
|
2708
|
-
meshOwner: smithy_client_1.expectString,
|
|
2709
|
-
resourceOwner: smithy_client_1.expectString,
|
|
2710
|
-
version: smithy_client_1.expectLong,
|
|
2711
|
-
});
|
|
2712
|
-
};
|
|
2713
|
-
const de_ResourceMetadata = (output, context) => {
|
|
2714
|
-
return (0, smithy_client_1.take)(output, {
|
|
2715
|
-
arn: smithy_client_1.expectString,
|
|
2716
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2717
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2718
|
-
meshOwner: smithy_client_1.expectString,
|
|
2719
|
-
resourceOwner: smithy_client_1.expectString,
|
|
2720
|
-
uid: smithy_client_1.expectString,
|
|
2721
|
-
version: smithy_client_1.expectLong,
|
|
2722
|
-
});
|
|
2723
|
-
};
|
|
2724
|
-
const de_RouteData = (output, context) => {
|
|
2725
|
-
return (0, smithy_client_1.take)(output, {
|
|
2726
|
-
meshName: smithy_client_1.expectString,
|
|
2727
|
-
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2728
|
-
routeName: smithy_client_1.expectString,
|
|
2729
|
-
spec: smithy_client_1._json,
|
|
2730
|
-
status: smithy_client_1._json,
|
|
2731
|
-
virtualRouterName: smithy_client_1.expectString,
|
|
2732
|
-
});
|
|
2733
|
-
};
|
|
2734
|
-
const de_RouteList = (output, context) => {
|
|
2735
|
-
const retVal = (output || [])
|
|
2736
|
-
.filter((e) => e != null)
|
|
2737
|
-
.map((entry) => {
|
|
2738
|
-
return de_RouteRef(entry, context);
|
|
2739
|
-
});
|
|
2740
|
-
return retVal;
|
|
2741
|
-
};
|
|
2742
|
-
const de_RouteRef = (output, context) => {
|
|
2743
|
-
return (0, smithy_client_1.take)(output, {
|
|
2744
|
-
arn: smithy_client_1.expectString,
|
|
2745
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2746
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2747
|
-
meshName: smithy_client_1.expectString,
|
|
2748
|
-
meshOwner: smithy_client_1.expectString,
|
|
2749
|
-
resourceOwner: smithy_client_1.expectString,
|
|
2750
|
-
routeName: smithy_client_1.expectString,
|
|
2751
|
-
version: smithy_client_1.expectLong,
|
|
2752
|
-
virtualRouterName: smithy_client_1.expectString,
|
|
2753
|
-
});
|
|
2754
|
-
};
|
|
2755
|
-
const de_VirtualGatewayData = (output, context) => {
|
|
2756
|
-
return (0, smithy_client_1.take)(output, {
|
|
2757
|
-
meshName: smithy_client_1.expectString,
|
|
2758
|
-
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2759
|
-
spec: smithy_client_1._json,
|
|
2760
|
-
status: smithy_client_1._json,
|
|
2761
|
-
virtualGatewayName: smithy_client_1.expectString,
|
|
2762
|
-
});
|
|
2763
|
-
};
|
|
2764
|
-
const de_VirtualGatewayList = (output, context) => {
|
|
2765
|
-
const retVal = (output || [])
|
|
2766
|
-
.filter((e) => e != null)
|
|
2767
|
-
.map((entry) => {
|
|
2768
|
-
return de_VirtualGatewayRef(entry, context);
|
|
2769
|
-
});
|
|
2770
|
-
return retVal;
|
|
2771
|
-
};
|
|
2772
|
-
const de_VirtualGatewayRef = (output, context) => {
|
|
2773
|
-
return (0, smithy_client_1.take)(output, {
|
|
2774
|
-
arn: smithy_client_1.expectString,
|
|
2775
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2776
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2777
|
-
meshName: smithy_client_1.expectString,
|
|
2778
|
-
meshOwner: smithy_client_1.expectString,
|
|
2779
|
-
resourceOwner: smithy_client_1.expectString,
|
|
2780
|
-
version: smithy_client_1.expectLong,
|
|
2781
|
-
virtualGatewayName: smithy_client_1.expectString,
|
|
2782
|
-
});
|
|
2783
|
-
};
|
|
2784
|
-
const de_VirtualNodeData = (output, context) => {
|
|
2785
|
-
return (0, smithy_client_1.take)(output, {
|
|
2786
|
-
meshName: smithy_client_1.expectString,
|
|
2787
|
-
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2788
|
-
spec: smithy_client_1._json,
|
|
2789
|
-
status: smithy_client_1._json,
|
|
2790
|
-
virtualNodeName: smithy_client_1.expectString,
|
|
2791
|
-
});
|
|
2792
|
-
};
|
|
2793
|
-
const de_VirtualNodeList = (output, context) => {
|
|
2794
|
-
const retVal = (output || [])
|
|
2795
|
-
.filter((e) => e != null)
|
|
2796
|
-
.map((entry) => {
|
|
2797
|
-
return de_VirtualNodeRef(entry, context);
|
|
2798
|
-
});
|
|
2799
|
-
return retVal;
|
|
2800
|
-
};
|
|
2801
|
-
const de_VirtualNodeRef = (output, context) => {
|
|
2802
|
-
return (0, smithy_client_1.take)(output, {
|
|
2803
|
-
arn: smithy_client_1.expectString,
|
|
2804
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2805
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2806
|
-
meshName: smithy_client_1.expectString,
|
|
2807
|
-
meshOwner: smithy_client_1.expectString,
|
|
2808
|
-
resourceOwner: smithy_client_1.expectString,
|
|
2809
|
-
version: smithy_client_1.expectLong,
|
|
2810
|
-
virtualNodeName: smithy_client_1.expectString,
|
|
2811
|
-
});
|
|
2812
|
-
};
|
|
2813
|
-
const de_VirtualRouterData = (output, context) => {
|
|
2814
|
-
return (0, smithy_client_1.take)(output, {
|
|
2815
|
-
meshName: smithy_client_1.expectString,
|
|
2816
|
-
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2817
|
-
spec: smithy_client_1._json,
|
|
2818
|
-
status: smithy_client_1._json,
|
|
2819
|
-
virtualRouterName: smithy_client_1.expectString,
|
|
2820
|
-
});
|
|
2821
|
-
};
|
|
2822
|
-
const de_VirtualRouterList = (output, context) => {
|
|
2823
|
-
const retVal = (output || [])
|
|
2824
|
-
.filter((e) => e != null)
|
|
2825
|
-
.map((entry) => {
|
|
2826
|
-
return de_VirtualRouterRef(entry, context);
|
|
2827
|
-
});
|
|
2828
|
-
return retVal;
|
|
2829
|
-
};
|
|
2830
|
-
const de_VirtualRouterRef = (output, context) => {
|
|
2831
|
-
return (0, smithy_client_1.take)(output, {
|
|
2832
|
-
arn: smithy_client_1.expectString,
|
|
2833
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2834
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2835
|
-
meshName: smithy_client_1.expectString,
|
|
2836
|
-
meshOwner: smithy_client_1.expectString,
|
|
2837
|
-
resourceOwner: smithy_client_1.expectString,
|
|
2838
|
-
version: smithy_client_1.expectLong,
|
|
2839
|
-
virtualRouterName: smithy_client_1.expectString,
|
|
2840
|
-
});
|
|
2841
|
-
};
|
|
2842
|
-
const de_VirtualServiceData = (output, context) => {
|
|
2843
|
-
return (0, smithy_client_1.take)(output, {
|
|
2844
|
-
meshName: smithy_client_1.expectString,
|
|
2845
|
-
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2846
|
-
spec: smithy_client_1._json,
|
|
2847
|
-
status: smithy_client_1._json,
|
|
2848
|
-
virtualServiceName: smithy_client_1.expectString,
|
|
2849
|
-
});
|
|
2850
|
-
};
|
|
2851
|
-
const de_VirtualServiceList = (output, context) => {
|
|
2852
|
-
const retVal = (output || [])
|
|
2853
|
-
.filter((e) => e != null)
|
|
2854
|
-
.map((entry) => {
|
|
2855
|
-
return de_VirtualServiceRef(entry, context);
|
|
2856
|
-
});
|
|
2857
|
-
return retVal;
|
|
2858
|
-
};
|
|
2859
|
-
const de_VirtualServiceRef = (output, context) => {
|
|
2860
|
-
return (0, smithy_client_1.take)(output, {
|
|
2861
|
-
arn: smithy_client_1.expectString,
|
|
2862
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2863
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2864
|
-
meshName: smithy_client_1.expectString,
|
|
2865
|
-
meshOwner: smithy_client_1.expectString,
|
|
2866
|
-
resourceOwner: smithy_client_1.expectString,
|
|
2867
|
-
version: smithy_client_1.expectLong,
|
|
2868
|
-
virtualServiceName: smithy_client_1.expectString,
|
|
2869
|
-
});
|
|
2870
|
-
};
|
|
2871
|
-
const deserializeMetadata = (output) => ({
|
|
2872
|
-
httpStatusCode: output.statusCode,
|
|
2873
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2874
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2875
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2876
|
-
});
|
|
2877
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2878
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2879
|
-
value !== null &&
|
|
2880
|
-
value !== "" &&
|
|
2881
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2882
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2883
|
-
const _l = "limit";
|
|
2884
|
-
const _mO = "meshOwner";
|
|
2885
|
-
const _nT = "nextToken";
|
|
2886
|
-
const _rA = "resourceArn";
|
|
2887
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2888
|
-
if (encoded.length) {
|
|
2889
|
-
return JSON.parse(encoded);
|
|
2890
|
-
}
|
|
2891
|
-
return {};
|
|
2892
|
-
});
|
|
2893
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2894
|
-
const value = await parseBody(errorBody, context);
|
|
2895
|
-
value.message = value.message ?? value.Message;
|
|
2896
|
-
return value;
|
|
2897
|
-
};
|
|
2898
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2899
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2900
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2901
|
-
let cleanValue = rawValue;
|
|
2902
|
-
if (typeof cleanValue === "number") {
|
|
2903
|
-
cleanValue = cleanValue.toString();
|
|
2904
|
-
}
|
|
2905
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2906
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2907
|
-
}
|
|
2908
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2909
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2910
|
-
}
|
|
2911
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2912
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2913
|
-
}
|
|
2914
|
-
return cleanValue;
|
|
2915
|
-
};
|
|
2916
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2917
|
-
if (headerKey !== undefined) {
|
|
2918
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2919
|
-
}
|
|
2920
|
-
if (data.code !== undefined) {
|
|
2921
|
-
return sanitizeErrorCode(data.code);
|
|
2922
|
-
}
|
|
2923
|
-
if (data["__type"] !== undefined) {
|
|
2924
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2925
|
-
}
|
|
2926
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|