@aws-sdk/client-migration-hub-refactor-spaces 3.490.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/MigrationHubRefactorSpaces.js +1 -59
- package/dist-cjs/MigrationHubRefactorSpacesClient.js +1 -43
- package/dist-cjs/commands/CreateApplicationCommand.js +1 -29
- package/dist-cjs/commands/CreateEnvironmentCommand.js +1 -29
- package/dist-cjs/commands/CreateRouteCommand.js +1 -29
- package/dist-cjs/commands/CreateServiceCommand.js +1 -29
- package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteRouteCommand.js +1 -28
- package/dist-cjs/commands/DeleteServiceCommand.js +1 -28
- package/dist-cjs/commands/GetApplicationCommand.js +1 -29
- package/dist-cjs/commands/GetEnvironmentCommand.js +1 -29
- package/dist-cjs/commands/GetResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/GetRouteCommand.js +1 -29
- package/dist-cjs/commands/GetServiceCommand.js +1 -29
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -29
- package/dist-cjs/commands/ListEnvironmentVpcsCommand.js +1 -28
- package/dist-cjs/commands/ListEnvironmentsCommand.js +1 -29
- package/dist-cjs/commands/ListRoutesCommand.js +1 -29
- package/dist-cjs/commands/ListServicesCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateRouteCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -27
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2961 -11
- package/dist-cjs/models/MigrationHubRefactorSpacesServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -345
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListEnvironmentVpcsPaginator.js +1 -7
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRoutesPaginator.js +1 -7
- package/dist-cjs/pagination/ListServicesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1910
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1910 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateRouteCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesCommand = exports.de_ListRoutesCommand = exports.de_ListEnvironmentVpcsCommand = exports.de_ListEnvironmentsCommand = exports.de_ListApplicationsCommand = exports.de_GetServiceCommand = exports.de_GetRouteCommand = exports.de_GetResourcePolicyCommand = exports.de_GetEnvironmentCommand = exports.de_GetApplicationCommand = exports.de_DeleteServiceCommand = exports.de_DeleteRouteCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteEnvironmentCommand = exports.de_DeleteApplicationCommand = exports.de_CreateServiceCommand = exports.de_CreateRouteCommand = exports.de_CreateEnvironmentCommand = exports.de_CreateApplicationCommand = exports.se_UpdateRouteCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesCommand = exports.se_ListRoutesCommand = exports.se_ListEnvironmentVpcsCommand = exports.se_ListEnvironmentsCommand = exports.se_ListApplicationsCommand = exports.se_GetServiceCommand = exports.se_GetRouteCommand = exports.se_GetResourcePolicyCommand = exports.se_GetEnvironmentCommand = exports.se_GetApplicationCommand = exports.se_DeleteServiceCommand = exports.se_DeleteRouteCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteEnvironmentCommand = exports.se_DeleteApplicationCommand = exports.se_CreateServiceCommand = exports.se_CreateRouteCommand = exports.se_CreateEnvironmentCommand = exports.se_CreateApplicationCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const uuid_1 = require("uuid");
|
|
7
|
-
const MigrationHubRefactorSpacesServiceException_1 = require("../models/MigrationHubRefactorSpacesServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_CreateApplicationCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications");
|
|
15
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
ApiGatewayProxy: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
20
|
-
Name: [],
|
|
21
|
-
ProxyType: [],
|
|
22
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
-
VpcId: [],
|
|
24
|
-
}));
|
|
25
|
-
b.m("POST").h(headers).b(body);
|
|
26
|
-
return b.build();
|
|
27
|
-
};
|
|
28
|
-
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
29
|
-
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
30
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
31
|
-
const headers = {
|
|
32
|
-
"content-type": "application/json",
|
|
33
|
-
};
|
|
34
|
-
b.bp("/environments");
|
|
35
|
-
let body;
|
|
36
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
38
|
-
Description: [],
|
|
39
|
-
Name: [],
|
|
40
|
-
NetworkFabricType: [],
|
|
41
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
-
}));
|
|
43
|
-
b.m("POST").h(headers).b(body);
|
|
44
|
-
return b.build();
|
|
45
|
-
};
|
|
46
|
-
exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
|
|
47
|
-
const se_CreateRouteCommand = async (input, context) => {
|
|
48
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
49
|
-
const headers = {
|
|
50
|
-
"content-type": "application/json",
|
|
51
|
-
};
|
|
52
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
|
|
53
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
54
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
57
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
58
|
-
DefaultRoute: (_) => (0, smithy_client_1._json)(_),
|
|
59
|
-
RouteType: [],
|
|
60
|
-
ServiceIdentifier: [],
|
|
61
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
62
|
-
UriPathRoute: (_) => (0, smithy_client_1._json)(_),
|
|
63
|
-
}));
|
|
64
|
-
b.m("POST").h(headers).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
exports.se_CreateRouteCommand = se_CreateRouteCommand;
|
|
68
|
-
const se_CreateServiceCommand = async (input, context) => {
|
|
69
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
70
|
-
const headers = {
|
|
71
|
-
"content-type": "application/json",
|
|
72
|
-
};
|
|
73
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
|
|
74
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
75
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
78
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
79
|
-
Description: [],
|
|
80
|
-
EndpointType: [],
|
|
81
|
-
LambdaEndpoint: (_) => (0, smithy_client_1._json)(_),
|
|
82
|
-
Name: [],
|
|
83
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
84
|
-
UrlEndpoint: (_) => (0, smithy_client_1._json)(_),
|
|
85
|
-
VpcId: [],
|
|
86
|
-
}));
|
|
87
|
-
b.m("POST").h(headers).b(body);
|
|
88
|
-
return b.build();
|
|
89
|
-
};
|
|
90
|
-
exports.se_CreateServiceCommand = se_CreateServiceCommand;
|
|
91
|
-
const se_DeleteApplicationCommand = async (input, context) => {
|
|
92
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
93
|
-
const headers = {};
|
|
94
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
|
|
95
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
96
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
97
|
-
let body;
|
|
98
|
-
b.m("DELETE").h(headers).b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
102
|
-
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
103
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
104
|
-
const headers = {};
|
|
105
|
-
b.bp("/environments/{EnvironmentIdentifier}");
|
|
106
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
107
|
-
let body;
|
|
108
|
-
b.m("DELETE").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
|
|
112
|
-
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
113
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
114
|
-
const headers = {};
|
|
115
|
-
b.bp("/resourcepolicy/{Identifier}");
|
|
116
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
117
|
-
let body;
|
|
118
|
-
b.m("DELETE").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
122
|
-
const se_DeleteRouteCommand = async (input, context) => {
|
|
123
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
124
|
-
const headers = {};
|
|
125
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
|
|
126
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
127
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
128
|
-
b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
|
|
129
|
-
let body;
|
|
130
|
-
b.m("DELETE").h(headers).b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
exports.se_DeleteRouteCommand = se_DeleteRouteCommand;
|
|
134
|
-
const se_DeleteServiceCommand = async (input, context) => {
|
|
135
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
136
|
-
const headers = {};
|
|
137
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
|
|
138
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
139
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
140
|
-
b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
|
|
141
|
-
let body;
|
|
142
|
-
b.m("DELETE").h(headers).b(body);
|
|
143
|
-
return b.build();
|
|
144
|
-
};
|
|
145
|
-
exports.se_DeleteServiceCommand = se_DeleteServiceCommand;
|
|
146
|
-
const se_GetApplicationCommand = async (input, context) => {
|
|
147
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
148
|
-
const headers = {};
|
|
149
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
|
|
150
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
151
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
152
|
-
let body;
|
|
153
|
-
b.m("GET").h(headers).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
157
|
-
const se_GetEnvironmentCommand = async (input, context) => {
|
|
158
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
159
|
-
const headers = {};
|
|
160
|
-
b.bp("/environments/{EnvironmentIdentifier}");
|
|
161
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
162
|
-
let body;
|
|
163
|
-
b.m("GET").h(headers).b(body);
|
|
164
|
-
return b.build();
|
|
165
|
-
};
|
|
166
|
-
exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
|
|
167
|
-
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
168
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
169
|
-
const headers = {};
|
|
170
|
-
b.bp("/resourcepolicy/{Identifier}");
|
|
171
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
172
|
-
let body;
|
|
173
|
-
b.m("GET").h(headers).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
177
|
-
const se_GetRouteCommand = async (input, context) => {
|
|
178
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
|
-
const headers = {};
|
|
180
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
|
|
181
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
182
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
183
|
-
b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
|
|
184
|
-
let body;
|
|
185
|
-
b.m("GET").h(headers).b(body);
|
|
186
|
-
return b.build();
|
|
187
|
-
};
|
|
188
|
-
exports.se_GetRouteCommand = se_GetRouteCommand;
|
|
189
|
-
const se_GetServiceCommand = async (input, context) => {
|
|
190
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
191
|
-
const headers = {};
|
|
192
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
|
|
193
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
194
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
195
|
-
b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
|
|
196
|
-
let body;
|
|
197
|
-
b.m("GET").h(headers).b(body);
|
|
198
|
-
return b.build();
|
|
199
|
-
};
|
|
200
|
-
exports.se_GetServiceCommand = se_GetServiceCommand;
|
|
201
|
-
const se_ListApplicationsCommand = async (input, context) => {
|
|
202
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
203
|
-
const headers = {};
|
|
204
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications");
|
|
205
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
206
|
-
const query = (0, smithy_client_1.map)({
|
|
207
|
-
[_nT]: [, input[_NT]],
|
|
208
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
209
|
-
});
|
|
210
|
-
let body;
|
|
211
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
212
|
-
return b.build();
|
|
213
|
-
};
|
|
214
|
-
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
215
|
-
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
216
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
217
|
-
const headers = {};
|
|
218
|
-
b.bp("/environments");
|
|
219
|
-
const query = (0, smithy_client_1.map)({
|
|
220
|
-
[_nT]: [, input[_NT]],
|
|
221
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
222
|
-
});
|
|
223
|
-
let body;
|
|
224
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
225
|
-
return b.build();
|
|
226
|
-
};
|
|
227
|
-
exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
|
|
228
|
-
const se_ListEnvironmentVpcsCommand = async (input, context) => {
|
|
229
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
230
|
-
const headers = {};
|
|
231
|
-
b.bp("/environments/{EnvironmentIdentifier}/vpcs");
|
|
232
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
233
|
-
const query = (0, smithy_client_1.map)({
|
|
234
|
-
[_nT]: [, input[_NT]],
|
|
235
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
236
|
-
});
|
|
237
|
-
let body;
|
|
238
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
239
|
-
return b.build();
|
|
240
|
-
};
|
|
241
|
-
exports.se_ListEnvironmentVpcsCommand = se_ListEnvironmentVpcsCommand;
|
|
242
|
-
const se_ListRoutesCommand = async (input, context) => {
|
|
243
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
|
-
const headers = {};
|
|
245
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
|
|
246
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
247
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
248
|
-
const query = (0, smithy_client_1.map)({
|
|
249
|
-
[_nT]: [, input[_NT]],
|
|
250
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
251
|
-
});
|
|
252
|
-
let body;
|
|
253
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
254
|
-
return b.build();
|
|
255
|
-
};
|
|
256
|
-
exports.se_ListRoutesCommand = se_ListRoutesCommand;
|
|
257
|
-
const se_ListServicesCommand = async (input, context) => {
|
|
258
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
259
|
-
const headers = {};
|
|
260
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
|
|
261
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
262
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
263
|
-
const query = (0, smithy_client_1.map)({
|
|
264
|
-
[_nT]: [, input[_NT]],
|
|
265
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
266
|
-
});
|
|
267
|
-
let body;
|
|
268
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
269
|
-
return b.build();
|
|
270
|
-
};
|
|
271
|
-
exports.se_ListServicesCommand = se_ListServicesCommand;
|
|
272
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
273
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
274
|
-
const headers = {};
|
|
275
|
-
b.bp("/tags/{ResourceArn}");
|
|
276
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
277
|
-
let body;
|
|
278
|
-
b.m("GET").h(headers).b(body);
|
|
279
|
-
return b.build();
|
|
280
|
-
};
|
|
281
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
282
|
-
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
283
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
284
|
-
const headers = {
|
|
285
|
-
"content-type": "application/json",
|
|
286
|
-
};
|
|
287
|
-
b.bp("/resourcepolicy");
|
|
288
|
-
let body;
|
|
289
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
290
|
-
Policy: [],
|
|
291
|
-
ResourceArn: [],
|
|
292
|
-
}));
|
|
293
|
-
b.m("PUT").h(headers).b(body);
|
|
294
|
-
return b.build();
|
|
295
|
-
};
|
|
296
|
-
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
297
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
298
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
299
|
-
const headers = {
|
|
300
|
-
"content-type": "application/json",
|
|
301
|
-
};
|
|
302
|
-
b.bp("/tags/{ResourceArn}");
|
|
303
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
304
|
-
let body;
|
|
305
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
306
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
307
|
-
}));
|
|
308
|
-
b.m("POST").h(headers).b(body);
|
|
309
|
-
return b.build();
|
|
310
|
-
};
|
|
311
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
312
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
313
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
314
|
-
const headers = {};
|
|
315
|
-
b.bp("/tags/{ResourceArn}");
|
|
316
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
317
|
-
const query = (0, smithy_client_1.map)({
|
|
318
|
-
[_tK]: [
|
|
319
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
320
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
321
|
-
],
|
|
322
|
-
});
|
|
323
|
-
let body;
|
|
324
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
325
|
-
return b.build();
|
|
326
|
-
};
|
|
327
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
328
|
-
const se_UpdateRouteCommand = async (input, context) => {
|
|
329
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
330
|
-
const headers = {
|
|
331
|
-
"content-type": "application/json",
|
|
332
|
-
};
|
|
333
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
|
|
334
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
335
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
336
|
-
b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
|
|
337
|
-
let body;
|
|
338
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
339
|
-
ActivationState: [],
|
|
340
|
-
}));
|
|
341
|
-
b.m("PATCH").h(headers).b(body);
|
|
342
|
-
return b.build();
|
|
343
|
-
};
|
|
344
|
-
exports.se_UpdateRouteCommand = se_UpdateRouteCommand;
|
|
345
|
-
const de_CreateApplicationCommand = async (output, context) => {
|
|
346
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
347
|
-
return de_CreateApplicationCommandError(output, context);
|
|
348
|
-
}
|
|
349
|
-
const contents = (0, smithy_client_1.map)({
|
|
350
|
-
$metadata: deserializeMetadata(output),
|
|
351
|
-
});
|
|
352
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
353
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
354
|
-
ApiGatewayProxy: smithy_client_1._json,
|
|
355
|
-
ApplicationId: smithy_client_1.expectString,
|
|
356
|
-
Arn: smithy_client_1.expectString,
|
|
357
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
358
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
359
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
360
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
361
|
-
Name: smithy_client_1.expectString,
|
|
362
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
363
|
-
ProxyType: smithy_client_1.expectString,
|
|
364
|
-
State: smithy_client_1.expectString,
|
|
365
|
-
Tags: smithy_client_1._json,
|
|
366
|
-
VpcId: smithy_client_1.expectString,
|
|
367
|
-
});
|
|
368
|
-
Object.assign(contents, doc);
|
|
369
|
-
return contents;
|
|
370
|
-
};
|
|
371
|
-
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
372
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
373
|
-
const parsedOutput = {
|
|
374
|
-
...output,
|
|
375
|
-
body: await parseErrorBody(output.body, context),
|
|
376
|
-
};
|
|
377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
378
|
-
switch (errorCode) {
|
|
379
|
-
case "AccessDeniedException":
|
|
380
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
381
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
382
|
-
case "ConflictException":
|
|
383
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
384
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
385
|
-
case "InternalServerException":
|
|
386
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
387
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
388
|
-
case "ResourceNotFoundException":
|
|
389
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
390
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
391
|
-
case "ServiceQuotaExceededException":
|
|
392
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
393
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ThrottlingException":
|
|
395
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
396
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
397
|
-
case "ValidationException":
|
|
398
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
399
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
400
|
-
default:
|
|
401
|
-
const parsedBody = parsedOutput.body;
|
|
402
|
-
return throwDefaultError({
|
|
403
|
-
output,
|
|
404
|
-
parsedBody,
|
|
405
|
-
errorCode,
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
410
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
411
|
-
return de_CreateEnvironmentCommandError(output, context);
|
|
412
|
-
}
|
|
413
|
-
const contents = (0, smithy_client_1.map)({
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
});
|
|
416
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
417
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
418
|
-
Arn: smithy_client_1.expectString,
|
|
419
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
420
|
-
Description: smithy_client_1.expectString,
|
|
421
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
422
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
423
|
-
Name: smithy_client_1.expectString,
|
|
424
|
-
NetworkFabricType: smithy_client_1.expectString,
|
|
425
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
426
|
-
State: smithy_client_1.expectString,
|
|
427
|
-
Tags: smithy_client_1._json,
|
|
428
|
-
});
|
|
429
|
-
Object.assign(contents, doc);
|
|
430
|
-
return contents;
|
|
431
|
-
};
|
|
432
|
-
exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
|
|
433
|
-
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
434
|
-
const parsedOutput = {
|
|
435
|
-
...output,
|
|
436
|
-
body: await parseErrorBody(output.body, context),
|
|
437
|
-
};
|
|
438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
|
-
switch (errorCode) {
|
|
440
|
-
case "AccessDeniedException":
|
|
441
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
442
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
443
|
-
case "ConflictException":
|
|
444
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
445
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
446
|
-
case "InternalServerException":
|
|
447
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
448
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ResourceNotFoundException":
|
|
450
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
451
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ServiceQuotaExceededException":
|
|
453
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
454
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
455
|
-
case "ThrottlingException":
|
|
456
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
457
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
458
|
-
case "ValidationException":
|
|
459
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
460
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
461
|
-
default:
|
|
462
|
-
const parsedBody = parsedOutput.body;
|
|
463
|
-
return throwDefaultError({
|
|
464
|
-
output,
|
|
465
|
-
parsedBody,
|
|
466
|
-
errorCode,
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
const de_CreateRouteCommand = async (output, context) => {
|
|
471
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
|
-
return de_CreateRouteCommandError(output, context);
|
|
473
|
-
}
|
|
474
|
-
const contents = (0, smithy_client_1.map)({
|
|
475
|
-
$metadata: deserializeMetadata(output),
|
|
476
|
-
});
|
|
477
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
478
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
479
|
-
ApplicationId: smithy_client_1.expectString,
|
|
480
|
-
Arn: smithy_client_1.expectString,
|
|
481
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
482
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
483
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
484
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
485
|
-
RouteId: smithy_client_1.expectString,
|
|
486
|
-
RouteType: smithy_client_1.expectString,
|
|
487
|
-
ServiceId: smithy_client_1.expectString,
|
|
488
|
-
State: smithy_client_1.expectString,
|
|
489
|
-
Tags: smithy_client_1._json,
|
|
490
|
-
UriPathRoute: smithy_client_1._json,
|
|
491
|
-
});
|
|
492
|
-
Object.assign(contents, doc);
|
|
493
|
-
return contents;
|
|
494
|
-
};
|
|
495
|
-
exports.de_CreateRouteCommand = de_CreateRouteCommand;
|
|
496
|
-
const de_CreateRouteCommandError = async (output, context) => {
|
|
497
|
-
const parsedOutput = {
|
|
498
|
-
...output,
|
|
499
|
-
body: await parseErrorBody(output.body, context),
|
|
500
|
-
};
|
|
501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
-
switch (errorCode) {
|
|
503
|
-
case "AccessDeniedException":
|
|
504
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
505
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ConflictException":
|
|
507
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
508
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
509
|
-
case "InternalServerException":
|
|
510
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
511
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
512
|
-
case "ResourceNotFoundException":
|
|
513
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
514
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
515
|
-
case "ServiceQuotaExceededException":
|
|
516
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
517
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
518
|
-
case "ThrottlingException":
|
|
519
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
520
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ValidationException":
|
|
522
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
524
|
-
default:
|
|
525
|
-
const parsedBody = parsedOutput.body;
|
|
526
|
-
return throwDefaultError({
|
|
527
|
-
output,
|
|
528
|
-
parsedBody,
|
|
529
|
-
errorCode,
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
const de_CreateServiceCommand = async (output, context) => {
|
|
534
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
-
return de_CreateServiceCommandError(output, context);
|
|
536
|
-
}
|
|
537
|
-
const contents = (0, smithy_client_1.map)({
|
|
538
|
-
$metadata: deserializeMetadata(output),
|
|
539
|
-
});
|
|
540
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
541
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
542
|
-
ApplicationId: smithy_client_1.expectString,
|
|
543
|
-
Arn: smithy_client_1.expectString,
|
|
544
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
545
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
546
|
-
Description: smithy_client_1.expectString,
|
|
547
|
-
EndpointType: smithy_client_1.expectString,
|
|
548
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
549
|
-
LambdaEndpoint: smithy_client_1._json,
|
|
550
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
551
|
-
Name: smithy_client_1.expectString,
|
|
552
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
553
|
-
ServiceId: smithy_client_1.expectString,
|
|
554
|
-
State: smithy_client_1.expectString,
|
|
555
|
-
Tags: smithy_client_1._json,
|
|
556
|
-
UrlEndpoint: smithy_client_1._json,
|
|
557
|
-
VpcId: smithy_client_1.expectString,
|
|
558
|
-
});
|
|
559
|
-
Object.assign(contents, doc);
|
|
560
|
-
return contents;
|
|
561
|
-
};
|
|
562
|
-
exports.de_CreateServiceCommand = de_CreateServiceCommand;
|
|
563
|
-
const de_CreateServiceCommandError = async (output, context) => {
|
|
564
|
-
const parsedOutput = {
|
|
565
|
-
...output,
|
|
566
|
-
body: await parseErrorBody(output.body, context),
|
|
567
|
-
};
|
|
568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
|
-
switch (errorCode) {
|
|
570
|
-
case "AccessDeniedException":
|
|
571
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
572
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ConflictException":
|
|
574
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
575
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
576
|
-
case "InternalServerException":
|
|
577
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
578
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
579
|
-
case "ResourceNotFoundException":
|
|
580
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
582
|
-
case "ServiceQuotaExceededException":
|
|
583
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
584
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
585
|
-
case "ThrottlingException":
|
|
586
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
587
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
588
|
-
case "ValidationException":
|
|
589
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
590
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
591
|
-
default:
|
|
592
|
-
const parsedBody = parsedOutput.body;
|
|
593
|
-
return throwDefaultError({
|
|
594
|
-
output,
|
|
595
|
-
parsedBody,
|
|
596
|
-
errorCode,
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
|
-
};
|
|
600
|
-
const de_DeleteApplicationCommand = async (output, context) => {
|
|
601
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
602
|
-
return de_DeleteApplicationCommandError(output, context);
|
|
603
|
-
}
|
|
604
|
-
const contents = (0, smithy_client_1.map)({
|
|
605
|
-
$metadata: deserializeMetadata(output),
|
|
606
|
-
});
|
|
607
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
608
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
609
|
-
ApplicationId: smithy_client_1.expectString,
|
|
610
|
-
Arn: smithy_client_1.expectString,
|
|
611
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
612
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
613
|
-
Name: smithy_client_1.expectString,
|
|
614
|
-
State: smithy_client_1.expectString,
|
|
615
|
-
});
|
|
616
|
-
Object.assign(contents, doc);
|
|
617
|
-
return contents;
|
|
618
|
-
};
|
|
619
|
-
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
620
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
621
|
-
const parsedOutput = {
|
|
622
|
-
...output,
|
|
623
|
-
body: await parseErrorBody(output.body, context),
|
|
624
|
-
};
|
|
625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
|
-
switch (errorCode) {
|
|
627
|
-
case "AccessDeniedException":
|
|
628
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
629
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
630
|
-
case "ConflictException":
|
|
631
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
632
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
633
|
-
case "InternalServerException":
|
|
634
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
635
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
636
|
-
case "ResourceNotFoundException":
|
|
637
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ThrottlingException":
|
|
640
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
641
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ValidationException":
|
|
643
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
644
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
655
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
-
return de_DeleteEnvironmentCommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const contents = (0, smithy_client_1.map)({
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
});
|
|
661
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
662
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
663
|
-
Arn: smithy_client_1.expectString,
|
|
664
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
665
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
666
|
-
Name: smithy_client_1.expectString,
|
|
667
|
-
State: smithy_client_1.expectString,
|
|
668
|
-
});
|
|
669
|
-
Object.assign(contents, doc);
|
|
670
|
-
return contents;
|
|
671
|
-
};
|
|
672
|
-
exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
|
|
673
|
-
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
674
|
-
const parsedOutput = {
|
|
675
|
-
...output,
|
|
676
|
-
body: await parseErrorBody(output.body, context),
|
|
677
|
-
};
|
|
678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
|
-
switch (errorCode) {
|
|
680
|
-
case "AccessDeniedException":
|
|
681
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
682
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
683
|
-
case "ConflictException":
|
|
684
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
685
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
686
|
-
case "InternalServerException":
|
|
687
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
688
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ResourceNotFoundException":
|
|
690
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ThrottlingException":
|
|
693
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
694
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
695
|
-
case "ValidationException":
|
|
696
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
697
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
698
|
-
default:
|
|
699
|
-
const parsedBody = parsedOutput.body;
|
|
700
|
-
return throwDefaultError({
|
|
701
|
-
output,
|
|
702
|
-
parsedBody,
|
|
703
|
-
errorCode,
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
};
|
|
707
|
-
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
708
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
709
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
710
|
-
}
|
|
711
|
-
const contents = (0, smithy_client_1.map)({
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
});
|
|
714
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
715
|
-
return contents;
|
|
716
|
-
};
|
|
717
|
-
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
718
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
719
|
-
const parsedOutput = {
|
|
720
|
-
...output,
|
|
721
|
-
body: await parseErrorBody(output.body, context),
|
|
722
|
-
};
|
|
723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
|
-
switch (errorCode) {
|
|
725
|
-
case "AccessDeniedException":
|
|
726
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
727
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
728
|
-
case "InternalServerException":
|
|
729
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
730
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ResourceNotFoundException":
|
|
732
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
733
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
734
|
-
case "ThrottlingException":
|
|
735
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
736
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ValidationException":
|
|
738
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
739
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
|
-
default:
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
return throwDefaultError({
|
|
743
|
-
output,
|
|
744
|
-
parsedBody,
|
|
745
|
-
errorCode,
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
|
-
const de_DeleteRouteCommand = async (output, context) => {
|
|
750
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
-
return de_DeleteRouteCommandError(output, context);
|
|
752
|
-
}
|
|
753
|
-
const contents = (0, smithy_client_1.map)({
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
});
|
|
756
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
757
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
758
|
-
ApplicationId: smithy_client_1.expectString,
|
|
759
|
-
Arn: smithy_client_1.expectString,
|
|
760
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
761
|
-
RouteId: smithy_client_1.expectString,
|
|
762
|
-
ServiceId: smithy_client_1.expectString,
|
|
763
|
-
State: smithy_client_1.expectString,
|
|
764
|
-
});
|
|
765
|
-
Object.assign(contents, doc);
|
|
766
|
-
return contents;
|
|
767
|
-
};
|
|
768
|
-
exports.de_DeleteRouteCommand = de_DeleteRouteCommand;
|
|
769
|
-
const de_DeleteRouteCommandError = async (output, context) => {
|
|
770
|
-
const parsedOutput = {
|
|
771
|
-
...output,
|
|
772
|
-
body: await parseErrorBody(output.body, context),
|
|
773
|
-
};
|
|
774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
-
switch (errorCode) {
|
|
776
|
-
case "AccessDeniedException":
|
|
777
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
778
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ConflictException":
|
|
780
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
781
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
782
|
-
case "InternalServerException":
|
|
783
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
784
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ResourceNotFoundException":
|
|
786
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
787
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
788
|
-
case "ThrottlingException":
|
|
789
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
790
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
791
|
-
case "ValidationException":
|
|
792
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
793
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
794
|
-
default:
|
|
795
|
-
const parsedBody = parsedOutput.body;
|
|
796
|
-
return throwDefaultError({
|
|
797
|
-
output,
|
|
798
|
-
parsedBody,
|
|
799
|
-
errorCode,
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
};
|
|
803
|
-
const de_DeleteServiceCommand = async (output, context) => {
|
|
804
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
-
return de_DeleteServiceCommandError(output, context);
|
|
806
|
-
}
|
|
807
|
-
const contents = (0, smithy_client_1.map)({
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
});
|
|
810
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
811
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
812
|
-
ApplicationId: smithy_client_1.expectString,
|
|
813
|
-
Arn: smithy_client_1.expectString,
|
|
814
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
815
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
816
|
-
Name: smithy_client_1.expectString,
|
|
817
|
-
ServiceId: smithy_client_1.expectString,
|
|
818
|
-
State: smithy_client_1.expectString,
|
|
819
|
-
});
|
|
820
|
-
Object.assign(contents, doc);
|
|
821
|
-
return contents;
|
|
822
|
-
};
|
|
823
|
-
exports.de_DeleteServiceCommand = de_DeleteServiceCommand;
|
|
824
|
-
const de_DeleteServiceCommandError = async (output, context) => {
|
|
825
|
-
const parsedOutput = {
|
|
826
|
-
...output,
|
|
827
|
-
body: await parseErrorBody(output.body, context),
|
|
828
|
-
};
|
|
829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
-
switch (errorCode) {
|
|
831
|
-
case "AccessDeniedException":
|
|
832
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
833
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ConflictException":
|
|
835
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
836
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
837
|
-
case "InternalServerException":
|
|
838
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
839
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ResourceNotFoundException":
|
|
841
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ThrottlingException":
|
|
844
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
845
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ValidationException":
|
|
847
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
848
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode,
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
};
|
|
858
|
-
const de_GetApplicationCommand = async (output, context) => {
|
|
859
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return de_GetApplicationCommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const contents = (0, smithy_client_1.map)({
|
|
863
|
-
$metadata: deserializeMetadata(output),
|
|
864
|
-
});
|
|
865
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
866
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
867
|
-
ApiGatewayProxy: smithy_client_1._json,
|
|
868
|
-
ApplicationId: smithy_client_1.expectString,
|
|
869
|
-
Arn: smithy_client_1.expectString,
|
|
870
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
871
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
872
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
873
|
-
Error: smithy_client_1._json,
|
|
874
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
875
|
-
Name: smithy_client_1.expectString,
|
|
876
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
877
|
-
ProxyType: smithy_client_1.expectString,
|
|
878
|
-
State: smithy_client_1.expectString,
|
|
879
|
-
Tags: smithy_client_1._json,
|
|
880
|
-
VpcId: smithy_client_1.expectString,
|
|
881
|
-
});
|
|
882
|
-
Object.assign(contents, doc);
|
|
883
|
-
return contents;
|
|
884
|
-
};
|
|
885
|
-
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
886
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
887
|
-
const parsedOutput = {
|
|
888
|
-
...output,
|
|
889
|
-
body: await parseErrorBody(output.body, context),
|
|
890
|
-
};
|
|
891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
-
switch (errorCode) {
|
|
893
|
-
case "AccessDeniedException":
|
|
894
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
895
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
896
|
-
case "InternalServerException":
|
|
897
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
898
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ResourceNotFoundException":
|
|
900
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
901
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ThrottlingException":
|
|
903
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
904
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ValidationException":
|
|
906
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
907
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
908
|
-
default:
|
|
909
|
-
const parsedBody = parsedOutput.body;
|
|
910
|
-
return throwDefaultError({
|
|
911
|
-
output,
|
|
912
|
-
parsedBody,
|
|
913
|
-
errorCode,
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
const de_GetEnvironmentCommand = async (output, context) => {
|
|
918
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
-
return de_GetEnvironmentCommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
const contents = (0, smithy_client_1.map)({
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
});
|
|
924
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
925
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
926
|
-
Arn: smithy_client_1.expectString,
|
|
927
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
928
|
-
Description: smithy_client_1.expectString,
|
|
929
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
930
|
-
Error: smithy_client_1._json,
|
|
931
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
932
|
-
Name: smithy_client_1.expectString,
|
|
933
|
-
NetworkFabricType: smithy_client_1.expectString,
|
|
934
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
935
|
-
State: smithy_client_1.expectString,
|
|
936
|
-
Tags: smithy_client_1._json,
|
|
937
|
-
TransitGatewayId: smithy_client_1.expectString,
|
|
938
|
-
});
|
|
939
|
-
Object.assign(contents, doc);
|
|
940
|
-
return contents;
|
|
941
|
-
};
|
|
942
|
-
exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
|
|
943
|
-
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
944
|
-
const parsedOutput = {
|
|
945
|
-
...output,
|
|
946
|
-
body: await parseErrorBody(output.body, context),
|
|
947
|
-
};
|
|
948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
-
switch (errorCode) {
|
|
950
|
-
case "AccessDeniedException":
|
|
951
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
952
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
953
|
-
case "InternalServerException":
|
|
954
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
955
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ResourceNotFoundException":
|
|
957
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
958
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ThrottlingException":
|
|
960
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
961
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ValidationException":
|
|
963
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
|
-
default:
|
|
966
|
-
const parsedBody = parsedOutput.body;
|
|
967
|
-
return throwDefaultError({
|
|
968
|
-
output,
|
|
969
|
-
parsedBody,
|
|
970
|
-
errorCode,
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
975
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
976
|
-
return de_GetResourcePolicyCommandError(output, context);
|
|
977
|
-
}
|
|
978
|
-
const contents = (0, smithy_client_1.map)({
|
|
979
|
-
$metadata: deserializeMetadata(output),
|
|
980
|
-
});
|
|
981
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
982
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
983
|
-
Policy: smithy_client_1.expectString,
|
|
984
|
-
});
|
|
985
|
-
Object.assign(contents, doc);
|
|
986
|
-
return contents;
|
|
987
|
-
};
|
|
988
|
-
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
989
|
-
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
990
|
-
const parsedOutput = {
|
|
991
|
-
...output,
|
|
992
|
-
body: await parseErrorBody(output.body, context),
|
|
993
|
-
};
|
|
994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
|
-
switch (errorCode) {
|
|
996
|
-
case "AccessDeniedException":
|
|
997
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
998
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
999
|
-
case "InternalServerException":
|
|
1000
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ResourceNotFoundException":
|
|
1003
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ThrottlingException":
|
|
1006
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1007
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ValidationException":
|
|
1009
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
|
-
default:
|
|
1012
|
-
const parsedBody = parsedOutput.body;
|
|
1013
|
-
return throwDefaultError({
|
|
1014
|
-
output,
|
|
1015
|
-
parsedBody,
|
|
1016
|
-
errorCode,
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
const de_GetRouteCommand = async (output, context) => {
|
|
1021
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1022
|
-
return de_GetRouteCommandError(output, context);
|
|
1023
|
-
}
|
|
1024
|
-
const contents = (0, smithy_client_1.map)({
|
|
1025
|
-
$metadata: deserializeMetadata(output),
|
|
1026
|
-
});
|
|
1027
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1028
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1029
|
-
AppendSourcePath: smithy_client_1.expectBoolean,
|
|
1030
|
-
ApplicationId: smithy_client_1.expectString,
|
|
1031
|
-
Arn: smithy_client_1.expectString,
|
|
1032
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
1033
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1034
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
1035
|
-
Error: smithy_client_1._json,
|
|
1036
|
-
IncludeChildPaths: smithy_client_1.expectBoolean,
|
|
1037
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1038
|
-
Methods: smithy_client_1._json,
|
|
1039
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
1040
|
-
PathResourceToId: smithy_client_1._json,
|
|
1041
|
-
RouteId: smithy_client_1.expectString,
|
|
1042
|
-
RouteType: smithy_client_1.expectString,
|
|
1043
|
-
ServiceId: smithy_client_1.expectString,
|
|
1044
|
-
SourcePath: smithy_client_1.expectString,
|
|
1045
|
-
State: smithy_client_1.expectString,
|
|
1046
|
-
Tags: smithy_client_1._json,
|
|
1047
|
-
});
|
|
1048
|
-
Object.assign(contents, doc);
|
|
1049
|
-
return contents;
|
|
1050
|
-
};
|
|
1051
|
-
exports.de_GetRouteCommand = de_GetRouteCommand;
|
|
1052
|
-
const de_GetRouteCommandError = async (output, context) => {
|
|
1053
|
-
const parsedOutput = {
|
|
1054
|
-
...output,
|
|
1055
|
-
body: await parseErrorBody(output.body, context),
|
|
1056
|
-
};
|
|
1057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
-
switch (errorCode) {
|
|
1059
|
-
case "AccessDeniedException":
|
|
1060
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1061
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "InternalServerException":
|
|
1063
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1064
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ResourceNotFoundException":
|
|
1066
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1067
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ThrottlingException":
|
|
1069
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1070
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ValidationException":
|
|
1072
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1074
|
-
default:
|
|
1075
|
-
const parsedBody = parsedOutput.body;
|
|
1076
|
-
return throwDefaultError({
|
|
1077
|
-
output,
|
|
1078
|
-
parsedBody,
|
|
1079
|
-
errorCode,
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
};
|
|
1083
|
-
const de_GetServiceCommand = async (output, context) => {
|
|
1084
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1085
|
-
return de_GetServiceCommandError(output, context);
|
|
1086
|
-
}
|
|
1087
|
-
const contents = (0, smithy_client_1.map)({
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
});
|
|
1090
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1091
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1092
|
-
ApplicationId: smithy_client_1.expectString,
|
|
1093
|
-
Arn: smithy_client_1.expectString,
|
|
1094
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
1095
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1096
|
-
Description: smithy_client_1.expectString,
|
|
1097
|
-
EndpointType: smithy_client_1.expectString,
|
|
1098
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
1099
|
-
Error: smithy_client_1._json,
|
|
1100
|
-
LambdaEndpoint: smithy_client_1._json,
|
|
1101
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1102
|
-
Name: smithy_client_1.expectString,
|
|
1103
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
1104
|
-
ServiceId: smithy_client_1.expectString,
|
|
1105
|
-
State: smithy_client_1.expectString,
|
|
1106
|
-
Tags: smithy_client_1._json,
|
|
1107
|
-
UrlEndpoint: smithy_client_1._json,
|
|
1108
|
-
VpcId: smithy_client_1.expectString,
|
|
1109
|
-
});
|
|
1110
|
-
Object.assign(contents, doc);
|
|
1111
|
-
return contents;
|
|
1112
|
-
};
|
|
1113
|
-
exports.de_GetServiceCommand = de_GetServiceCommand;
|
|
1114
|
-
const de_GetServiceCommandError = async (output, context) => {
|
|
1115
|
-
const parsedOutput = {
|
|
1116
|
-
...output,
|
|
1117
|
-
body: await parseErrorBody(output.body, context),
|
|
1118
|
-
};
|
|
1119
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
|
-
switch (errorCode) {
|
|
1121
|
-
case "AccessDeniedException":
|
|
1122
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1123
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "InternalServerException":
|
|
1125
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1126
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "ResourceNotFoundException":
|
|
1128
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1129
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ThrottlingException":
|
|
1131
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1132
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ValidationException":
|
|
1134
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1135
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode,
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
|
-
const de_ListApplicationsCommand = async (output, context) => {
|
|
1146
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1147
|
-
return de_ListApplicationsCommandError(output, context);
|
|
1148
|
-
}
|
|
1149
|
-
const contents = (0, smithy_client_1.map)({
|
|
1150
|
-
$metadata: deserializeMetadata(output),
|
|
1151
|
-
});
|
|
1152
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1153
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1154
|
-
ApplicationSummaryList: (_) => de_ApplicationSummaries(_, context),
|
|
1155
|
-
NextToken: smithy_client_1.expectString,
|
|
1156
|
-
});
|
|
1157
|
-
Object.assign(contents, doc);
|
|
1158
|
-
return contents;
|
|
1159
|
-
};
|
|
1160
|
-
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
1161
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
1162
|
-
const parsedOutput = {
|
|
1163
|
-
...output,
|
|
1164
|
-
body: await parseErrorBody(output.body, context),
|
|
1165
|
-
};
|
|
1166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
|
-
switch (errorCode) {
|
|
1168
|
-
case "AccessDeniedException":
|
|
1169
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1170
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ConflictException":
|
|
1172
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1173
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "InternalServerException":
|
|
1175
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1176
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ResourceNotFoundException":
|
|
1178
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1179
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "ServiceQuotaExceededException":
|
|
1181
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1182
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "ThrottlingException":
|
|
1184
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1185
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "ValidationException":
|
|
1187
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1188
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1189
|
-
default:
|
|
1190
|
-
const parsedBody = parsedOutput.body;
|
|
1191
|
-
return throwDefaultError({
|
|
1192
|
-
output,
|
|
1193
|
-
parsedBody,
|
|
1194
|
-
errorCode,
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
};
|
|
1198
|
-
const de_ListEnvironmentsCommand = async (output, context) => {
|
|
1199
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1200
|
-
return de_ListEnvironmentsCommandError(output, context);
|
|
1201
|
-
}
|
|
1202
|
-
const contents = (0, smithy_client_1.map)({
|
|
1203
|
-
$metadata: deserializeMetadata(output),
|
|
1204
|
-
});
|
|
1205
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1206
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1207
|
-
EnvironmentSummaryList: (_) => de_EnvironmentSummaries(_, context),
|
|
1208
|
-
NextToken: smithy_client_1.expectString,
|
|
1209
|
-
});
|
|
1210
|
-
Object.assign(contents, doc);
|
|
1211
|
-
return contents;
|
|
1212
|
-
};
|
|
1213
|
-
exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
|
|
1214
|
-
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
1215
|
-
const parsedOutput = {
|
|
1216
|
-
...output,
|
|
1217
|
-
body: await parseErrorBody(output.body, context),
|
|
1218
|
-
};
|
|
1219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
-
switch (errorCode) {
|
|
1221
|
-
case "AccessDeniedException":
|
|
1222
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1223
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "InternalServerException":
|
|
1225
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1226
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "ResourceNotFoundException":
|
|
1228
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1229
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ThrottlingException":
|
|
1231
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1232
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "ValidationException":
|
|
1234
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1235
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1236
|
-
default:
|
|
1237
|
-
const parsedBody = parsedOutput.body;
|
|
1238
|
-
return throwDefaultError({
|
|
1239
|
-
output,
|
|
1240
|
-
parsedBody,
|
|
1241
|
-
errorCode,
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
|
-
const de_ListEnvironmentVpcsCommand = async (output, context) => {
|
|
1246
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1247
|
-
return de_ListEnvironmentVpcsCommandError(output, context);
|
|
1248
|
-
}
|
|
1249
|
-
const contents = (0, smithy_client_1.map)({
|
|
1250
|
-
$metadata: deserializeMetadata(output),
|
|
1251
|
-
});
|
|
1252
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1253
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1254
|
-
EnvironmentVpcList: (_) => de_EnvironmentVpcs(_, context),
|
|
1255
|
-
NextToken: smithy_client_1.expectString,
|
|
1256
|
-
});
|
|
1257
|
-
Object.assign(contents, doc);
|
|
1258
|
-
return contents;
|
|
1259
|
-
};
|
|
1260
|
-
exports.de_ListEnvironmentVpcsCommand = de_ListEnvironmentVpcsCommand;
|
|
1261
|
-
const de_ListEnvironmentVpcsCommandError = async (output, context) => {
|
|
1262
|
-
const parsedOutput = {
|
|
1263
|
-
...output,
|
|
1264
|
-
body: await parseErrorBody(output.body, context),
|
|
1265
|
-
};
|
|
1266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
|
-
switch (errorCode) {
|
|
1268
|
-
case "AccessDeniedException":
|
|
1269
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1270
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "InternalServerException":
|
|
1272
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1273
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ResourceNotFoundException":
|
|
1275
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1276
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ThrottlingException":
|
|
1278
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1279
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ValidationException":
|
|
1281
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1282
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1283
|
-
default:
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode,
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
};
|
|
1292
|
-
const de_ListRoutesCommand = async (output, context) => {
|
|
1293
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1294
|
-
return de_ListRoutesCommandError(output, context);
|
|
1295
|
-
}
|
|
1296
|
-
const contents = (0, smithy_client_1.map)({
|
|
1297
|
-
$metadata: deserializeMetadata(output),
|
|
1298
|
-
});
|
|
1299
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1300
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1301
|
-
NextToken: smithy_client_1.expectString,
|
|
1302
|
-
RouteSummaryList: (_) => de_RouteSummaries(_, context),
|
|
1303
|
-
});
|
|
1304
|
-
Object.assign(contents, doc);
|
|
1305
|
-
return contents;
|
|
1306
|
-
};
|
|
1307
|
-
exports.de_ListRoutesCommand = de_ListRoutesCommand;
|
|
1308
|
-
const de_ListRoutesCommandError = async (output, context) => {
|
|
1309
|
-
const parsedOutput = {
|
|
1310
|
-
...output,
|
|
1311
|
-
body: await parseErrorBody(output.body, context),
|
|
1312
|
-
};
|
|
1313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
|
-
switch (errorCode) {
|
|
1315
|
-
case "AccessDeniedException":
|
|
1316
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1317
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "ConflictException":
|
|
1319
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1320
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "InternalServerException":
|
|
1322
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1323
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ResourceNotFoundException":
|
|
1325
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ServiceQuotaExceededException":
|
|
1328
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1329
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ThrottlingException":
|
|
1331
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1332
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ValidationException":
|
|
1334
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
|
-
const de_ListServicesCommand = async (output, context) => {
|
|
1346
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
|
-
return de_ListServicesCommandError(output, context);
|
|
1348
|
-
}
|
|
1349
|
-
const contents = (0, smithy_client_1.map)({
|
|
1350
|
-
$metadata: deserializeMetadata(output),
|
|
1351
|
-
});
|
|
1352
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1353
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1354
|
-
NextToken: smithy_client_1.expectString,
|
|
1355
|
-
ServiceSummaryList: (_) => de_ServiceSummaries(_, context),
|
|
1356
|
-
});
|
|
1357
|
-
Object.assign(contents, doc);
|
|
1358
|
-
return contents;
|
|
1359
|
-
};
|
|
1360
|
-
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
1361
|
-
const de_ListServicesCommandError = async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context),
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "AccessDeniedException":
|
|
1369
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1370
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ConflictException":
|
|
1372
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1373
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "InternalServerException":
|
|
1375
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1376
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ResourceNotFoundException":
|
|
1378
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1379
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ServiceQuotaExceededException":
|
|
1381
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1382
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ThrottlingException":
|
|
1384
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1385
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ValidationException":
|
|
1387
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1388
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode,
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
};
|
|
1398
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1399
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1401
|
-
}
|
|
1402
|
-
const contents = (0, smithy_client_1.map)({
|
|
1403
|
-
$metadata: deserializeMetadata(output),
|
|
1404
|
-
});
|
|
1405
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1406
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1407
|
-
Tags: smithy_client_1._json,
|
|
1408
|
-
});
|
|
1409
|
-
Object.assign(contents, doc);
|
|
1410
|
-
return contents;
|
|
1411
|
-
};
|
|
1412
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1413
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1414
|
-
const parsedOutput = {
|
|
1415
|
-
...output,
|
|
1416
|
-
body: await parseErrorBody(output.body, context),
|
|
1417
|
-
};
|
|
1418
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
|
-
switch (errorCode) {
|
|
1420
|
-
case "InternalServerException":
|
|
1421
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1422
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ResourceNotFoundException":
|
|
1424
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1425
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ValidationException":
|
|
1427
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1428
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1429
|
-
default:
|
|
1430
|
-
const parsedBody = parsedOutput.body;
|
|
1431
|
-
return throwDefaultError({
|
|
1432
|
-
output,
|
|
1433
|
-
parsedBody,
|
|
1434
|
-
errorCode,
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
};
|
|
1438
|
-
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1439
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1440
|
-
return de_PutResourcePolicyCommandError(output, context);
|
|
1441
|
-
}
|
|
1442
|
-
const contents = (0, smithy_client_1.map)({
|
|
1443
|
-
$metadata: deserializeMetadata(output),
|
|
1444
|
-
});
|
|
1445
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1446
|
-
return contents;
|
|
1447
|
-
};
|
|
1448
|
-
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
1449
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1450
|
-
const parsedOutput = {
|
|
1451
|
-
...output,
|
|
1452
|
-
body: await parseErrorBody(output.body, context),
|
|
1453
|
-
};
|
|
1454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
-
switch (errorCode) {
|
|
1456
|
-
case "AccessDeniedException":
|
|
1457
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "InternalServerException":
|
|
1460
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1461
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "InvalidResourcePolicyException":
|
|
1463
|
-
case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
|
|
1464
|
-
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ResourceNotFoundException":
|
|
1466
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ThrottlingException":
|
|
1469
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ValidationException":
|
|
1472
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1474
|
-
default:
|
|
1475
|
-
const parsedBody = parsedOutput.body;
|
|
1476
|
-
return throwDefaultError({
|
|
1477
|
-
output,
|
|
1478
|
-
parsedBody,
|
|
1479
|
-
errorCode,
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
};
|
|
1483
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1484
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1485
|
-
return de_TagResourceCommandError(output, context);
|
|
1486
|
-
}
|
|
1487
|
-
const contents = (0, smithy_client_1.map)({
|
|
1488
|
-
$metadata: deserializeMetadata(output),
|
|
1489
|
-
});
|
|
1490
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1491
|
-
return contents;
|
|
1492
|
-
};
|
|
1493
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1494
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1495
|
-
const parsedOutput = {
|
|
1496
|
-
...output,
|
|
1497
|
-
body: await parseErrorBody(output.body, context),
|
|
1498
|
-
};
|
|
1499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
-
switch (errorCode) {
|
|
1501
|
-
case "InternalServerException":
|
|
1502
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1503
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "ResourceNotFoundException":
|
|
1505
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1506
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "ValidationException":
|
|
1508
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1509
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1510
|
-
default:
|
|
1511
|
-
const parsedBody = parsedOutput.body;
|
|
1512
|
-
return throwDefaultError({
|
|
1513
|
-
output,
|
|
1514
|
-
parsedBody,
|
|
1515
|
-
errorCode,
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
};
|
|
1519
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1520
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1521
|
-
return de_UntagResourceCommandError(output, context);
|
|
1522
|
-
}
|
|
1523
|
-
const contents = (0, smithy_client_1.map)({
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
});
|
|
1526
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1527
|
-
return contents;
|
|
1528
|
-
};
|
|
1529
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1530
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context),
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "InternalServerException":
|
|
1538
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1539
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ResourceNotFoundException":
|
|
1541
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1542
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ValidationException":
|
|
1544
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1545
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode,
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
|
-
const de_UpdateRouteCommand = async (output, context) => {
|
|
1556
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return de_UpdateRouteCommandError(output, context);
|
|
1558
|
-
}
|
|
1559
|
-
const contents = (0, smithy_client_1.map)({
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
});
|
|
1562
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1563
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1564
|
-
ApplicationId: smithy_client_1.expectString,
|
|
1565
|
-
Arn: smithy_client_1.expectString,
|
|
1566
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1567
|
-
RouteId: smithy_client_1.expectString,
|
|
1568
|
-
ServiceId: smithy_client_1.expectString,
|
|
1569
|
-
State: smithy_client_1.expectString,
|
|
1570
|
-
});
|
|
1571
|
-
Object.assign(contents, doc);
|
|
1572
|
-
return contents;
|
|
1573
|
-
};
|
|
1574
|
-
exports.de_UpdateRouteCommand = de_UpdateRouteCommand;
|
|
1575
|
-
const de_UpdateRouteCommandError = async (output, context) => {
|
|
1576
|
-
const parsedOutput = {
|
|
1577
|
-
...output,
|
|
1578
|
-
body: await parseErrorBody(output.body, context),
|
|
1579
|
-
};
|
|
1580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
|
-
switch (errorCode) {
|
|
1582
|
-
case "AccessDeniedException":
|
|
1583
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1584
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "InternalServerException":
|
|
1586
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1587
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ResourceNotFoundException":
|
|
1589
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1590
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ThrottlingException":
|
|
1592
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1593
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "ValidationException":
|
|
1595
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1596
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1597
|
-
default:
|
|
1598
|
-
const parsedBody = parsedOutput.body;
|
|
1599
|
-
return throwDefaultError({
|
|
1600
|
-
output,
|
|
1601
|
-
parsedBody,
|
|
1602
|
-
errorCode,
|
|
1603
|
-
});
|
|
1604
|
-
}
|
|
1605
|
-
};
|
|
1606
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException);
|
|
1607
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1608
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1609
|
-
const data = parsedOutput.body;
|
|
1610
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1611
|
-
Message: smithy_client_1.expectString,
|
|
1612
|
-
});
|
|
1613
|
-
Object.assign(contents, doc);
|
|
1614
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1615
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1616
|
-
...contents,
|
|
1617
|
-
});
|
|
1618
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1619
|
-
};
|
|
1620
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1621
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1622
|
-
const data = parsedOutput.body;
|
|
1623
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1624
|
-
Message: smithy_client_1.expectString,
|
|
1625
|
-
ResourceId: smithy_client_1.expectString,
|
|
1626
|
-
ResourceType: smithy_client_1.expectString,
|
|
1627
|
-
});
|
|
1628
|
-
Object.assign(contents, doc);
|
|
1629
|
-
const exception = new models_0_1.ConflictException({
|
|
1630
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1631
|
-
...contents,
|
|
1632
|
-
});
|
|
1633
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1634
|
-
};
|
|
1635
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1636
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1637
|
-
const data = parsedOutput.body;
|
|
1638
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1639
|
-
Message: smithy_client_1.expectString,
|
|
1640
|
-
});
|
|
1641
|
-
Object.assign(contents, doc);
|
|
1642
|
-
const exception = new models_0_1.InternalServerException({
|
|
1643
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1644
|
-
...contents,
|
|
1645
|
-
});
|
|
1646
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1647
|
-
};
|
|
1648
|
-
const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
1649
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1650
|
-
const data = parsedOutput.body;
|
|
1651
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1652
|
-
Message: smithy_client_1.expectString,
|
|
1653
|
-
});
|
|
1654
|
-
Object.assign(contents, doc);
|
|
1655
|
-
const exception = new models_0_1.InvalidResourcePolicyException({
|
|
1656
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1657
|
-
...contents,
|
|
1658
|
-
});
|
|
1659
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1660
|
-
};
|
|
1661
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1662
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1663
|
-
const data = parsedOutput.body;
|
|
1664
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1665
|
-
Message: smithy_client_1.expectString,
|
|
1666
|
-
ResourceId: smithy_client_1.expectString,
|
|
1667
|
-
ResourceType: smithy_client_1.expectString,
|
|
1668
|
-
});
|
|
1669
|
-
Object.assign(contents, doc);
|
|
1670
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1671
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1672
|
-
...contents,
|
|
1673
|
-
});
|
|
1674
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1675
|
-
};
|
|
1676
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1677
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1678
|
-
const data = parsedOutput.body;
|
|
1679
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1680
|
-
Message: smithy_client_1.expectString,
|
|
1681
|
-
QuotaCode: smithy_client_1.expectString,
|
|
1682
|
-
ResourceId: smithy_client_1.expectString,
|
|
1683
|
-
ResourceType: smithy_client_1.expectString,
|
|
1684
|
-
ServiceCode: smithy_client_1.expectString,
|
|
1685
|
-
});
|
|
1686
|
-
Object.assign(contents, doc);
|
|
1687
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1688
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1689
|
-
...contents,
|
|
1690
|
-
});
|
|
1691
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1692
|
-
};
|
|
1693
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1694
|
-
const contents = (0, smithy_client_1.map)({
|
|
1695
|
-
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1696
|
-
});
|
|
1697
|
-
const data = parsedOutput.body;
|
|
1698
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1699
|
-
Message: smithy_client_1.expectString,
|
|
1700
|
-
QuotaCode: smithy_client_1.expectString,
|
|
1701
|
-
ServiceCode: smithy_client_1.expectString,
|
|
1702
|
-
});
|
|
1703
|
-
Object.assign(contents, doc);
|
|
1704
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1705
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1706
|
-
...contents,
|
|
1707
|
-
});
|
|
1708
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1709
|
-
};
|
|
1710
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1711
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1712
|
-
const data = parsedOutput.body;
|
|
1713
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1714
|
-
Message: smithy_client_1.expectString,
|
|
1715
|
-
});
|
|
1716
|
-
Object.assign(contents, doc);
|
|
1717
|
-
const exception = new models_0_1.ValidationException({
|
|
1718
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1719
|
-
...contents,
|
|
1720
|
-
});
|
|
1721
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1722
|
-
};
|
|
1723
|
-
const de_ApplicationSummaries = (output, context) => {
|
|
1724
|
-
const retVal = (output || [])
|
|
1725
|
-
.filter((e) => e != null)
|
|
1726
|
-
.map((entry) => {
|
|
1727
|
-
return de_ApplicationSummary(entry, context);
|
|
1728
|
-
});
|
|
1729
|
-
return retVal;
|
|
1730
|
-
};
|
|
1731
|
-
const de_ApplicationSummary = (output, context) => {
|
|
1732
|
-
return (0, smithy_client_1.take)(output, {
|
|
1733
|
-
ApiGatewayProxy: smithy_client_1._json,
|
|
1734
|
-
ApplicationId: smithy_client_1.expectString,
|
|
1735
|
-
Arn: smithy_client_1.expectString,
|
|
1736
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
1737
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1738
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
1739
|
-
Error: smithy_client_1._json,
|
|
1740
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1741
|
-
Name: smithy_client_1.expectString,
|
|
1742
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
1743
|
-
ProxyType: smithy_client_1.expectString,
|
|
1744
|
-
State: smithy_client_1.expectString,
|
|
1745
|
-
Tags: smithy_client_1._json,
|
|
1746
|
-
VpcId: smithy_client_1.expectString,
|
|
1747
|
-
});
|
|
1748
|
-
};
|
|
1749
|
-
const de_EnvironmentSummaries = (output, context) => {
|
|
1750
|
-
const retVal = (output || [])
|
|
1751
|
-
.filter((e) => e != null)
|
|
1752
|
-
.map((entry) => {
|
|
1753
|
-
return de_EnvironmentSummary(entry, context);
|
|
1754
|
-
});
|
|
1755
|
-
return retVal;
|
|
1756
|
-
};
|
|
1757
|
-
const de_EnvironmentSummary = (output, context) => {
|
|
1758
|
-
return (0, smithy_client_1.take)(output, {
|
|
1759
|
-
Arn: smithy_client_1.expectString,
|
|
1760
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1761
|
-
Description: smithy_client_1.expectString,
|
|
1762
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
1763
|
-
Error: smithy_client_1._json,
|
|
1764
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1765
|
-
Name: smithy_client_1.expectString,
|
|
1766
|
-
NetworkFabricType: smithy_client_1.expectString,
|
|
1767
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
1768
|
-
State: smithy_client_1.expectString,
|
|
1769
|
-
Tags: smithy_client_1._json,
|
|
1770
|
-
TransitGatewayId: smithy_client_1.expectString,
|
|
1771
|
-
});
|
|
1772
|
-
};
|
|
1773
|
-
const de_EnvironmentVpc = (output, context) => {
|
|
1774
|
-
return (0, smithy_client_1.take)(output, {
|
|
1775
|
-
AccountId: smithy_client_1.expectString,
|
|
1776
|
-
CidrBlocks: smithy_client_1._json,
|
|
1777
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1778
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
1779
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1780
|
-
VpcId: smithy_client_1.expectString,
|
|
1781
|
-
VpcName: smithy_client_1.expectString,
|
|
1782
|
-
});
|
|
1783
|
-
};
|
|
1784
|
-
const de_EnvironmentVpcs = (output, context) => {
|
|
1785
|
-
const retVal = (output || [])
|
|
1786
|
-
.filter((e) => e != null)
|
|
1787
|
-
.map((entry) => {
|
|
1788
|
-
return de_EnvironmentVpc(entry, context);
|
|
1789
|
-
});
|
|
1790
|
-
return retVal;
|
|
1791
|
-
};
|
|
1792
|
-
const de_RouteSummaries = (output, context) => {
|
|
1793
|
-
const retVal = (output || [])
|
|
1794
|
-
.filter((e) => e != null)
|
|
1795
|
-
.map((entry) => {
|
|
1796
|
-
return de_RouteSummary(entry, context);
|
|
1797
|
-
});
|
|
1798
|
-
return retVal;
|
|
1799
|
-
};
|
|
1800
|
-
const de_RouteSummary = (output, context) => {
|
|
1801
|
-
return (0, smithy_client_1.take)(output, {
|
|
1802
|
-
AppendSourcePath: smithy_client_1.expectBoolean,
|
|
1803
|
-
ApplicationId: smithy_client_1.expectString,
|
|
1804
|
-
Arn: smithy_client_1.expectString,
|
|
1805
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
1806
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1807
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
1808
|
-
Error: smithy_client_1._json,
|
|
1809
|
-
IncludeChildPaths: smithy_client_1.expectBoolean,
|
|
1810
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1811
|
-
Methods: smithy_client_1._json,
|
|
1812
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
1813
|
-
PathResourceToId: smithy_client_1._json,
|
|
1814
|
-
RouteId: smithy_client_1.expectString,
|
|
1815
|
-
RouteType: smithy_client_1.expectString,
|
|
1816
|
-
ServiceId: smithy_client_1.expectString,
|
|
1817
|
-
SourcePath: smithy_client_1.expectString,
|
|
1818
|
-
State: smithy_client_1.expectString,
|
|
1819
|
-
Tags: smithy_client_1._json,
|
|
1820
|
-
});
|
|
1821
|
-
};
|
|
1822
|
-
const de_ServiceSummaries = (output, context) => {
|
|
1823
|
-
const retVal = (output || [])
|
|
1824
|
-
.filter((e) => e != null)
|
|
1825
|
-
.map((entry) => {
|
|
1826
|
-
return de_ServiceSummary(entry, context);
|
|
1827
|
-
});
|
|
1828
|
-
return retVal;
|
|
1829
|
-
};
|
|
1830
|
-
const de_ServiceSummary = (output, context) => {
|
|
1831
|
-
return (0, smithy_client_1.take)(output, {
|
|
1832
|
-
ApplicationId: smithy_client_1.expectString,
|
|
1833
|
-
Arn: smithy_client_1.expectString,
|
|
1834
|
-
CreatedByAccountId: smithy_client_1.expectString,
|
|
1835
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1836
|
-
Description: smithy_client_1.expectString,
|
|
1837
|
-
EndpointType: smithy_client_1.expectString,
|
|
1838
|
-
EnvironmentId: smithy_client_1.expectString,
|
|
1839
|
-
Error: smithy_client_1._json,
|
|
1840
|
-
LambdaEndpoint: smithy_client_1._json,
|
|
1841
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1842
|
-
Name: smithy_client_1.expectString,
|
|
1843
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
1844
|
-
ServiceId: smithy_client_1.expectString,
|
|
1845
|
-
State: smithy_client_1.expectString,
|
|
1846
|
-
Tags: smithy_client_1._json,
|
|
1847
|
-
UrlEndpoint: smithy_client_1._json,
|
|
1848
|
-
VpcId: smithy_client_1.expectString,
|
|
1849
|
-
});
|
|
1850
|
-
};
|
|
1851
|
-
const deserializeMetadata = (output) => ({
|
|
1852
|
-
httpStatusCode: output.statusCode,
|
|
1853
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1854
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1855
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1856
|
-
});
|
|
1857
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1858
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1859
|
-
value !== null &&
|
|
1860
|
-
value !== "" &&
|
|
1861
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1862
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1863
|
-
const _MR = "MaxResults";
|
|
1864
|
-
const _NT = "NextToken";
|
|
1865
|
-
const _RAS = "RetryAfterSeconds";
|
|
1866
|
-
const _TK = "TagKeys";
|
|
1867
|
-
const _mR = "maxResults";
|
|
1868
|
-
const _nT = "nextToken";
|
|
1869
|
-
const _ra = "retry-after";
|
|
1870
|
-
const _tK = "tagKeys";
|
|
1871
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1872
|
-
if (encoded.length) {
|
|
1873
|
-
return JSON.parse(encoded);
|
|
1874
|
-
}
|
|
1875
|
-
return {};
|
|
1876
|
-
});
|
|
1877
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1878
|
-
const value = await parseBody(errorBody, context);
|
|
1879
|
-
value.message = value.message ?? value.Message;
|
|
1880
|
-
return value;
|
|
1881
|
-
};
|
|
1882
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1883
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1884
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1885
|
-
let cleanValue = rawValue;
|
|
1886
|
-
if (typeof cleanValue === "number") {
|
|
1887
|
-
cleanValue = cleanValue.toString();
|
|
1888
|
-
}
|
|
1889
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1890
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1891
|
-
}
|
|
1892
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1893
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1894
|
-
}
|
|
1895
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1896
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1897
|
-
}
|
|
1898
|
-
return cleanValue;
|
|
1899
|
-
};
|
|
1900
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1901
|
-
if (headerKey !== undefined) {
|
|
1902
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1903
|
-
}
|
|
1904
|
-
if (data.code !== undefined) {
|
|
1905
|
-
return sanitizeErrorCode(data.code);
|
|
1906
|
-
}
|
|
1907
|
-
if (data["__type"] !== undefined) {
|
|
1908
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1909
|
-
}
|
|
1910
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|