@aws-sdk/client-migration-hub-refactor-spaces 3.928.0 → 3.929.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/index.js +1148 -1376
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/MigrationHubRefactorSpacesClient.js +2 -0
- package/dist-es/commands/CreateApplicationCommand.js +3 -10
- package/dist-es/commands/CreateEnvironmentCommand.js +3 -10
- package/dist-es/commands/CreateRouteCommand.js +3 -10
- package/dist-es/commands/CreateServiceCommand.js +3 -10
- package/dist-es/commands/DeleteApplicationCommand.js +3 -9
- package/dist-es/commands/DeleteEnvironmentCommand.js +3 -9
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteRouteCommand.js +3 -9
- package/dist-es/commands/DeleteServiceCommand.js +3 -9
- package/dist-es/commands/GetApplicationCommand.js +3 -10
- package/dist-es/commands/GetEnvironmentCommand.js +3 -10
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
- package/dist-es/commands/GetRouteCommand.js +3 -10
- package/dist-es/commands/GetServiceCommand.js +3 -10
- package/dist-es/commands/ListApplicationsCommand.js +3 -10
- package/dist-es/commands/ListEnvironmentVpcsCommand.js +3 -9
- package/dist-es/commands/ListEnvironmentsCommand.js +3 -10
- package/dist-es/commands/ListRoutesCommand.js +3 -10
- package/dist-es/commands/ListServicesCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -10
- package/dist-es/commands/UpdateRouteCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -101
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1085 -0
- package/dist-types/MigrationHubRefactorSpacesClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -92
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +110 -0
- package/dist-types/ts3.4/MigrationHubRefactorSpacesClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -67
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +116 -0
- package/package.json +2 -3
- package/dist-es/protocols/Aws_restJson1.js +0 -1069
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -218
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -293
|
@@ -1,1069 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { MigrationHubRefactorSpacesServiceException as __BaseException } from "../models/MigrationHubRefactorSpacesServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, InvalidResourcePolicyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateApplicationCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications");
|
|
13
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
ApiGatewayProxy: (_) => _json(_),
|
|
17
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
18
|
-
Name: [],
|
|
19
|
-
ProxyType: [],
|
|
20
|
-
Tags: (_) => _json(_),
|
|
21
|
-
VpcId: [],
|
|
22
|
-
}));
|
|
23
|
-
b.m("POST").h(headers).b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
27
|
-
const b = rb(input, context);
|
|
28
|
-
const headers = {
|
|
29
|
-
"content-type": "application/json",
|
|
30
|
-
};
|
|
31
|
-
b.bp("/environments");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(take(input, {
|
|
34
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
35
|
-
Description: [],
|
|
36
|
-
Name: [],
|
|
37
|
-
NetworkFabricType: [],
|
|
38
|
-
Tags: (_) => _json(_),
|
|
39
|
-
}));
|
|
40
|
-
b.m("POST").h(headers).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
export const se_CreateRouteCommand = async (input, context) => {
|
|
44
|
-
const b = rb(input, context);
|
|
45
|
-
const headers = {
|
|
46
|
-
"content-type": "application/json",
|
|
47
|
-
};
|
|
48
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
|
|
49
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
50
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(take(input, {
|
|
53
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
54
|
-
DefaultRoute: (_) => _json(_),
|
|
55
|
-
RouteType: [],
|
|
56
|
-
ServiceIdentifier: [],
|
|
57
|
-
Tags: (_) => _json(_),
|
|
58
|
-
UriPathRoute: (_) => _json(_),
|
|
59
|
-
}));
|
|
60
|
-
b.m("POST").h(headers).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
|
-
export const se_CreateServiceCommand = async (input, context) => {
|
|
64
|
-
const b = rb(input, context);
|
|
65
|
-
const headers = {
|
|
66
|
-
"content-type": "application/json",
|
|
67
|
-
};
|
|
68
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
|
|
69
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
70
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
71
|
-
let body;
|
|
72
|
-
body = JSON.stringify(take(input, {
|
|
73
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
74
|
-
Description: [],
|
|
75
|
-
EndpointType: [],
|
|
76
|
-
LambdaEndpoint: (_) => _json(_),
|
|
77
|
-
Name: [],
|
|
78
|
-
Tags: (_) => _json(_),
|
|
79
|
-
UrlEndpoint: (_) => _json(_),
|
|
80
|
-
VpcId: [],
|
|
81
|
-
}));
|
|
82
|
-
b.m("POST").h(headers).b(body);
|
|
83
|
-
return b.build();
|
|
84
|
-
};
|
|
85
|
-
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
86
|
-
const b = rb(input, context);
|
|
87
|
-
const headers = {};
|
|
88
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
|
|
89
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
90
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
91
|
-
let body;
|
|
92
|
-
b.m("DELETE").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = {};
|
|
98
|
-
b.bp("/environments/{EnvironmentIdentifier}");
|
|
99
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
100
|
-
let body;
|
|
101
|
-
b.m("DELETE").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
105
|
-
const b = rb(input, context);
|
|
106
|
-
const headers = {};
|
|
107
|
-
b.bp("/resourcepolicy/{Identifier}");
|
|
108
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
109
|
-
let body;
|
|
110
|
-
b.m("DELETE").h(headers).b(body);
|
|
111
|
-
return b.build();
|
|
112
|
-
};
|
|
113
|
-
export const se_DeleteRouteCommand = async (input, context) => {
|
|
114
|
-
const b = rb(input, context);
|
|
115
|
-
const headers = {};
|
|
116
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
|
|
117
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
118
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
119
|
-
b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
|
|
120
|
-
let body;
|
|
121
|
-
b.m("DELETE").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
export const se_DeleteServiceCommand = async (input, context) => {
|
|
125
|
-
const b = rb(input, context);
|
|
126
|
-
const headers = {};
|
|
127
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
|
|
128
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
129
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
130
|
-
b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
|
|
131
|
-
let body;
|
|
132
|
-
b.m("DELETE").h(headers).b(body);
|
|
133
|
-
return b.build();
|
|
134
|
-
};
|
|
135
|
-
export const se_GetApplicationCommand = async (input, context) => {
|
|
136
|
-
const b = rb(input, context);
|
|
137
|
-
const headers = {};
|
|
138
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
|
|
139
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
140
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
141
|
-
let body;
|
|
142
|
-
b.m("GET").h(headers).b(body);
|
|
143
|
-
return b.build();
|
|
144
|
-
};
|
|
145
|
-
export const se_GetEnvironmentCommand = async (input, context) => {
|
|
146
|
-
const b = rb(input, context);
|
|
147
|
-
const headers = {};
|
|
148
|
-
b.bp("/environments/{EnvironmentIdentifier}");
|
|
149
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
150
|
-
let body;
|
|
151
|
-
b.m("GET").h(headers).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
155
|
-
const b = rb(input, context);
|
|
156
|
-
const headers = {};
|
|
157
|
-
b.bp("/resourcepolicy/{Identifier}");
|
|
158
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
159
|
-
let body;
|
|
160
|
-
b.m("GET").h(headers).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
export const se_GetRouteCommand = async (input, context) => {
|
|
164
|
-
const b = rb(input, context);
|
|
165
|
-
const headers = {};
|
|
166
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
|
|
167
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
168
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
169
|
-
b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
|
|
170
|
-
let body;
|
|
171
|
-
b.m("GET").h(headers).b(body);
|
|
172
|
-
return b.build();
|
|
173
|
-
};
|
|
174
|
-
export const se_GetServiceCommand = async (input, context) => {
|
|
175
|
-
const b = rb(input, context);
|
|
176
|
-
const headers = {};
|
|
177
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
|
|
178
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
179
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
180
|
-
b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
|
|
181
|
-
let body;
|
|
182
|
-
b.m("GET").h(headers).b(body);
|
|
183
|
-
return b.build();
|
|
184
|
-
};
|
|
185
|
-
export const se_ListApplicationsCommand = async (input, context) => {
|
|
186
|
-
const b = rb(input, context);
|
|
187
|
-
const headers = {};
|
|
188
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications");
|
|
189
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
190
|
-
const query = map({
|
|
191
|
-
[_nT]: [, input[_NT]],
|
|
192
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
193
|
-
});
|
|
194
|
-
let body;
|
|
195
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
196
|
-
return b.build();
|
|
197
|
-
};
|
|
198
|
-
export const se_ListEnvironmentsCommand = async (input, context) => {
|
|
199
|
-
const b = rb(input, context);
|
|
200
|
-
const headers = {};
|
|
201
|
-
b.bp("/environments");
|
|
202
|
-
const query = map({
|
|
203
|
-
[_nT]: [, input[_NT]],
|
|
204
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
205
|
-
});
|
|
206
|
-
let body;
|
|
207
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
208
|
-
return b.build();
|
|
209
|
-
};
|
|
210
|
-
export const se_ListEnvironmentVpcsCommand = async (input, context) => {
|
|
211
|
-
const b = rb(input, context);
|
|
212
|
-
const headers = {};
|
|
213
|
-
b.bp("/environments/{EnvironmentIdentifier}/vpcs");
|
|
214
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
215
|
-
const query = map({
|
|
216
|
-
[_nT]: [, input[_NT]],
|
|
217
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
218
|
-
});
|
|
219
|
-
let body;
|
|
220
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
export const se_ListRoutesCommand = async (input, context) => {
|
|
224
|
-
const b = rb(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
|
|
227
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
228
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
229
|
-
const query = map({
|
|
230
|
-
[_nT]: [, input[_NT]],
|
|
231
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
232
|
-
});
|
|
233
|
-
let body;
|
|
234
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
export const se_ListServicesCommand = async (input, context) => {
|
|
238
|
-
const b = rb(input, context);
|
|
239
|
-
const headers = {};
|
|
240
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
|
|
241
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
242
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
243
|
-
const query = map({
|
|
244
|
-
[_nT]: [, input[_NT]],
|
|
245
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
246
|
-
});
|
|
247
|
-
let body;
|
|
248
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
249
|
-
return b.build();
|
|
250
|
-
};
|
|
251
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
252
|
-
const b = rb(input, context);
|
|
253
|
-
const headers = {};
|
|
254
|
-
b.bp("/tags/{ResourceArn}");
|
|
255
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
256
|
-
let body;
|
|
257
|
-
b.m("GET").h(headers).b(body);
|
|
258
|
-
return b.build();
|
|
259
|
-
};
|
|
260
|
-
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
261
|
-
const b = rb(input, context);
|
|
262
|
-
const headers = {
|
|
263
|
-
"content-type": "application/json",
|
|
264
|
-
};
|
|
265
|
-
b.bp("/resourcepolicy");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify(take(input, {
|
|
268
|
-
Policy: [],
|
|
269
|
-
ResourceArn: [],
|
|
270
|
-
}));
|
|
271
|
-
b.m("PUT").h(headers).b(body);
|
|
272
|
-
return b.build();
|
|
273
|
-
};
|
|
274
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
275
|
-
const b = rb(input, context);
|
|
276
|
-
const headers = {
|
|
277
|
-
"content-type": "application/json",
|
|
278
|
-
};
|
|
279
|
-
b.bp("/tags/{ResourceArn}");
|
|
280
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
281
|
-
let body;
|
|
282
|
-
body = JSON.stringify(take(input, {
|
|
283
|
-
Tags: (_) => _json(_),
|
|
284
|
-
}));
|
|
285
|
-
b.m("POST").h(headers).b(body);
|
|
286
|
-
return b.build();
|
|
287
|
-
};
|
|
288
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
289
|
-
const b = rb(input, context);
|
|
290
|
-
const headers = {};
|
|
291
|
-
b.bp("/tags/{ResourceArn}");
|
|
292
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
293
|
-
const query = map({
|
|
294
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
295
|
-
});
|
|
296
|
-
let body;
|
|
297
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
298
|
-
return b.build();
|
|
299
|
-
};
|
|
300
|
-
export const se_UpdateRouteCommand = async (input, context) => {
|
|
301
|
-
const b = rb(input, context);
|
|
302
|
-
const headers = {
|
|
303
|
-
"content-type": "application/json",
|
|
304
|
-
};
|
|
305
|
-
b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
|
|
306
|
-
b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
307
|
-
b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
308
|
-
b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify(take(input, {
|
|
311
|
-
ActivationState: [],
|
|
312
|
-
}));
|
|
313
|
-
b.m("PATCH").h(headers).b(body);
|
|
314
|
-
return b.build();
|
|
315
|
-
};
|
|
316
|
-
export const de_CreateApplicationCommand = async (output, context) => {
|
|
317
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
318
|
-
return de_CommandError(output, context);
|
|
319
|
-
}
|
|
320
|
-
const contents = map({
|
|
321
|
-
$metadata: deserializeMetadata(output),
|
|
322
|
-
});
|
|
323
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
324
|
-
const doc = take(data, {
|
|
325
|
-
ApiGatewayProxy: _json,
|
|
326
|
-
ApplicationId: __expectString,
|
|
327
|
-
Arn: __expectString,
|
|
328
|
-
CreatedByAccountId: __expectString,
|
|
329
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
330
|
-
EnvironmentId: __expectString,
|
|
331
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
332
|
-
Name: __expectString,
|
|
333
|
-
OwnerAccountId: __expectString,
|
|
334
|
-
ProxyType: __expectString,
|
|
335
|
-
State: __expectString,
|
|
336
|
-
Tags: _json,
|
|
337
|
-
VpcId: __expectString,
|
|
338
|
-
});
|
|
339
|
-
Object.assign(contents, doc);
|
|
340
|
-
return contents;
|
|
341
|
-
};
|
|
342
|
-
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
343
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
|
-
return de_CommandError(output, context);
|
|
345
|
-
}
|
|
346
|
-
const contents = map({
|
|
347
|
-
$metadata: deserializeMetadata(output),
|
|
348
|
-
});
|
|
349
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
350
|
-
const doc = take(data, {
|
|
351
|
-
Arn: __expectString,
|
|
352
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
353
|
-
Description: __expectString,
|
|
354
|
-
EnvironmentId: __expectString,
|
|
355
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
356
|
-
Name: __expectString,
|
|
357
|
-
NetworkFabricType: __expectString,
|
|
358
|
-
OwnerAccountId: __expectString,
|
|
359
|
-
State: __expectString,
|
|
360
|
-
Tags: _json,
|
|
361
|
-
});
|
|
362
|
-
Object.assign(contents, doc);
|
|
363
|
-
return contents;
|
|
364
|
-
};
|
|
365
|
-
export const de_CreateRouteCommand = async (output, context) => {
|
|
366
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
367
|
-
return de_CommandError(output, context);
|
|
368
|
-
}
|
|
369
|
-
const contents = map({
|
|
370
|
-
$metadata: deserializeMetadata(output),
|
|
371
|
-
});
|
|
372
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
373
|
-
const doc = take(data, {
|
|
374
|
-
ApplicationId: __expectString,
|
|
375
|
-
Arn: __expectString,
|
|
376
|
-
CreatedByAccountId: __expectString,
|
|
377
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
378
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
379
|
-
OwnerAccountId: __expectString,
|
|
380
|
-
RouteId: __expectString,
|
|
381
|
-
RouteType: __expectString,
|
|
382
|
-
ServiceId: __expectString,
|
|
383
|
-
State: __expectString,
|
|
384
|
-
Tags: _json,
|
|
385
|
-
UriPathRoute: _json,
|
|
386
|
-
});
|
|
387
|
-
Object.assign(contents, doc);
|
|
388
|
-
return contents;
|
|
389
|
-
};
|
|
390
|
-
export const de_CreateServiceCommand = async (output, context) => {
|
|
391
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
392
|
-
return de_CommandError(output, context);
|
|
393
|
-
}
|
|
394
|
-
const contents = map({
|
|
395
|
-
$metadata: deserializeMetadata(output),
|
|
396
|
-
});
|
|
397
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
398
|
-
const doc = take(data, {
|
|
399
|
-
ApplicationId: __expectString,
|
|
400
|
-
Arn: __expectString,
|
|
401
|
-
CreatedByAccountId: __expectString,
|
|
402
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
403
|
-
Description: __expectString,
|
|
404
|
-
EndpointType: __expectString,
|
|
405
|
-
EnvironmentId: __expectString,
|
|
406
|
-
LambdaEndpoint: _json,
|
|
407
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
408
|
-
Name: __expectString,
|
|
409
|
-
OwnerAccountId: __expectString,
|
|
410
|
-
ServiceId: __expectString,
|
|
411
|
-
State: __expectString,
|
|
412
|
-
Tags: _json,
|
|
413
|
-
UrlEndpoint: _json,
|
|
414
|
-
VpcId: __expectString,
|
|
415
|
-
});
|
|
416
|
-
Object.assign(contents, doc);
|
|
417
|
-
return contents;
|
|
418
|
-
};
|
|
419
|
-
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
420
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
421
|
-
return de_CommandError(output, context);
|
|
422
|
-
}
|
|
423
|
-
const contents = map({
|
|
424
|
-
$metadata: deserializeMetadata(output),
|
|
425
|
-
});
|
|
426
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
427
|
-
const doc = take(data, {
|
|
428
|
-
ApplicationId: __expectString,
|
|
429
|
-
Arn: __expectString,
|
|
430
|
-
EnvironmentId: __expectString,
|
|
431
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
432
|
-
Name: __expectString,
|
|
433
|
-
State: __expectString,
|
|
434
|
-
});
|
|
435
|
-
Object.assign(contents, doc);
|
|
436
|
-
return contents;
|
|
437
|
-
};
|
|
438
|
-
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
439
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
440
|
-
return de_CommandError(output, context);
|
|
441
|
-
}
|
|
442
|
-
const contents = map({
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
});
|
|
445
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
446
|
-
const doc = take(data, {
|
|
447
|
-
Arn: __expectString,
|
|
448
|
-
EnvironmentId: __expectString,
|
|
449
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
450
|
-
Name: __expectString,
|
|
451
|
-
State: __expectString,
|
|
452
|
-
});
|
|
453
|
-
Object.assign(contents, doc);
|
|
454
|
-
return contents;
|
|
455
|
-
};
|
|
456
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
458
|
-
return de_CommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const contents = map({
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
});
|
|
463
|
-
await collectBody(output.body, context);
|
|
464
|
-
return contents;
|
|
465
|
-
};
|
|
466
|
-
export const de_DeleteRouteCommand = async (output, context) => {
|
|
467
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
|
-
return de_CommandError(output, context);
|
|
469
|
-
}
|
|
470
|
-
const contents = map({
|
|
471
|
-
$metadata: deserializeMetadata(output),
|
|
472
|
-
});
|
|
473
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
474
|
-
const doc = take(data, {
|
|
475
|
-
ApplicationId: __expectString,
|
|
476
|
-
Arn: __expectString,
|
|
477
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
478
|
-
RouteId: __expectString,
|
|
479
|
-
ServiceId: __expectString,
|
|
480
|
-
State: __expectString,
|
|
481
|
-
});
|
|
482
|
-
Object.assign(contents, doc);
|
|
483
|
-
return contents;
|
|
484
|
-
};
|
|
485
|
-
export const de_DeleteServiceCommand = async (output, context) => {
|
|
486
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
-
return de_CommandError(output, context);
|
|
488
|
-
}
|
|
489
|
-
const contents = map({
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
});
|
|
492
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
493
|
-
const doc = take(data, {
|
|
494
|
-
ApplicationId: __expectString,
|
|
495
|
-
Arn: __expectString,
|
|
496
|
-
EnvironmentId: __expectString,
|
|
497
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
498
|
-
Name: __expectString,
|
|
499
|
-
ServiceId: __expectString,
|
|
500
|
-
State: __expectString,
|
|
501
|
-
});
|
|
502
|
-
Object.assign(contents, doc);
|
|
503
|
-
return contents;
|
|
504
|
-
};
|
|
505
|
-
export const de_GetApplicationCommand = async (output, context) => {
|
|
506
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
507
|
-
return de_CommandError(output, context);
|
|
508
|
-
}
|
|
509
|
-
const contents = map({
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
});
|
|
512
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
513
|
-
const doc = take(data, {
|
|
514
|
-
ApiGatewayProxy: _json,
|
|
515
|
-
ApplicationId: __expectString,
|
|
516
|
-
Arn: __expectString,
|
|
517
|
-
CreatedByAccountId: __expectString,
|
|
518
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
519
|
-
EnvironmentId: __expectString,
|
|
520
|
-
Error: _json,
|
|
521
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
522
|
-
Name: __expectString,
|
|
523
|
-
OwnerAccountId: __expectString,
|
|
524
|
-
ProxyType: __expectString,
|
|
525
|
-
State: __expectString,
|
|
526
|
-
Tags: _json,
|
|
527
|
-
VpcId: __expectString,
|
|
528
|
-
});
|
|
529
|
-
Object.assign(contents, doc);
|
|
530
|
-
return contents;
|
|
531
|
-
};
|
|
532
|
-
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
533
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
534
|
-
return de_CommandError(output, context);
|
|
535
|
-
}
|
|
536
|
-
const contents = map({
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
});
|
|
539
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
540
|
-
const doc = take(data, {
|
|
541
|
-
Arn: __expectString,
|
|
542
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
543
|
-
Description: __expectString,
|
|
544
|
-
EnvironmentId: __expectString,
|
|
545
|
-
Error: _json,
|
|
546
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
547
|
-
Name: __expectString,
|
|
548
|
-
NetworkFabricType: __expectString,
|
|
549
|
-
OwnerAccountId: __expectString,
|
|
550
|
-
State: __expectString,
|
|
551
|
-
Tags: _json,
|
|
552
|
-
TransitGatewayId: __expectString,
|
|
553
|
-
});
|
|
554
|
-
Object.assign(contents, doc);
|
|
555
|
-
return contents;
|
|
556
|
-
};
|
|
557
|
-
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
558
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return de_CommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const contents = map({
|
|
562
|
-
$metadata: deserializeMetadata(output),
|
|
563
|
-
});
|
|
564
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
565
|
-
const doc = take(data, {
|
|
566
|
-
Policy: __expectString,
|
|
567
|
-
});
|
|
568
|
-
Object.assign(contents, doc);
|
|
569
|
-
return contents;
|
|
570
|
-
};
|
|
571
|
-
export const de_GetRouteCommand = async (output, context) => {
|
|
572
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
573
|
-
return de_CommandError(output, context);
|
|
574
|
-
}
|
|
575
|
-
const contents = map({
|
|
576
|
-
$metadata: deserializeMetadata(output),
|
|
577
|
-
});
|
|
578
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
579
|
-
const doc = take(data, {
|
|
580
|
-
AppendSourcePath: __expectBoolean,
|
|
581
|
-
ApplicationId: __expectString,
|
|
582
|
-
Arn: __expectString,
|
|
583
|
-
CreatedByAccountId: __expectString,
|
|
584
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
585
|
-
EnvironmentId: __expectString,
|
|
586
|
-
Error: _json,
|
|
587
|
-
IncludeChildPaths: __expectBoolean,
|
|
588
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
589
|
-
Methods: _json,
|
|
590
|
-
OwnerAccountId: __expectString,
|
|
591
|
-
PathResourceToId: _json,
|
|
592
|
-
RouteId: __expectString,
|
|
593
|
-
RouteType: __expectString,
|
|
594
|
-
ServiceId: __expectString,
|
|
595
|
-
SourcePath: __expectString,
|
|
596
|
-
State: __expectString,
|
|
597
|
-
Tags: _json,
|
|
598
|
-
});
|
|
599
|
-
Object.assign(contents, doc);
|
|
600
|
-
return contents;
|
|
601
|
-
};
|
|
602
|
-
export const de_GetServiceCommand = async (output, context) => {
|
|
603
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
-
return de_CommandError(output, context);
|
|
605
|
-
}
|
|
606
|
-
const contents = map({
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
});
|
|
609
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
610
|
-
const doc = take(data, {
|
|
611
|
-
ApplicationId: __expectString,
|
|
612
|
-
Arn: __expectString,
|
|
613
|
-
CreatedByAccountId: __expectString,
|
|
614
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
615
|
-
Description: __expectString,
|
|
616
|
-
EndpointType: __expectString,
|
|
617
|
-
EnvironmentId: __expectString,
|
|
618
|
-
Error: _json,
|
|
619
|
-
LambdaEndpoint: _json,
|
|
620
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
621
|
-
Name: __expectString,
|
|
622
|
-
OwnerAccountId: __expectString,
|
|
623
|
-
ServiceId: __expectString,
|
|
624
|
-
State: __expectString,
|
|
625
|
-
Tags: _json,
|
|
626
|
-
UrlEndpoint: _json,
|
|
627
|
-
VpcId: __expectString,
|
|
628
|
-
});
|
|
629
|
-
Object.assign(contents, doc);
|
|
630
|
-
return contents;
|
|
631
|
-
};
|
|
632
|
-
export const de_ListApplicationsCommand = async (output, context) => {
|
|
633
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
|
-
return de_CommandError(output, context);
|
|
635
|
-
}
|
|
636
|
-
const contents = map({
|
|
637
|
-
$metadata: deserializeMetadata(output),
|
|
638
|
-
});
|
|
639
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
640
|
-
const doc = take(data, {
|
|
641
|
-
ApplicationSummaryList: (_) => de_ApplicationSummaries(_, context),
|
|
642
|
-
NextToken: __expectString,
|
|
643
|
-
});
|
|
644
|
-
Object.assign(contents, doc);
|
|
645
|
-
return contents;
|
|
646
|
-
};
|
|
647
|
-
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
648
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return de_CommandError(output, context);
|
|
650
|
-
}
|
|
651
|
-
const contents = map({
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
});
|
|
654
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
655
|
-
const doc = take(data, {
|
|
656
|
-
EnvironmentSummaryList: (_) => de_EnvironmentSummaries(_, context),
|
|
657
|
-
NextToken: __expectString,
|
|
658
|
-
});
|
|
659
|
-
Object.assign(contents, doc);
|
|
660
|
-
return contents;
|
|
661
|
-
};
|
|
662
|
-
export const de_ListEnvironmentVpcsCommand = async (output, context) => {
|
|
663
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
-
return de_CommandError(output, context);
|
|
665
|
-
}
|
|
666
|
-
const contents = map({
|
|
667
|
-
$metadata: deserializeMetadata(output),
|
|
668
|
-
});
|
|
669
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
670
|
-
const doc = take(data, {
|
|
671
|
-
EnvironmentVpcList: (_) => de_EnvironmentVpcs(_, context),
|
|
672
|
-
NextToken: __expectString,
|
|
673
|
-
});
|
|
674
|
-
Object.assign(contents, doc);
|
|
675
|
-
return contents;
|
|
676
|
-
};
|
|
677
|
-
export const de_ListRoutesCommand = async (output, context) => {
|
|
678
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
679
|
-
return de_CommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const contents = map({
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
});
|
|
684
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
685
|
-
const doc = take(data, {
|
|
686
|
-
NextToken: __expectString,
|
|
687
|
-
RouteSummaryList: (_) => de_RouteSummaries(_, context),
|
|
688
|
-
});
|
|
689
|
-
Object.assign(contents, doc);
|
|
690
|
-
return contents;
|
|
691
|
-
};
|
|
692
|
-
export const de_ListServicesCommand = async (output, context) => {
|
|
693
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
-
return de_CommandError(output, context);
|
|
695
|
-
}
|
|
696
|
-
const contents = map({
|
|
697
|
-
$metadata: deserializeMetadata(output),
|
|
698
|
-
});
|
|
699
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
700
|
-
const doc = take(data, {
|
|
701
|
-
NextToken: __expectString,
|
|
702
|
-
ServiceSummaryList: (_) => de_ServiceSummaries(_, context),
|
|
703
|
-
});
|
|
704
|
-
Object.assign(contents, doc);
|
|
705
|
-
return contents;
|
|
706
|
-
};
|
|
707
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
708
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
709
|
-
return de_CommandError(output, context);
|
|
710
|
-
}
|
|
711
|
-
const contents = map({
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
});
|
|
714
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
715
|
-
const doc = take(data, {
|
|
716
|
-
Tags: _json,
|
|
717
|
-
});
|
|
718
|
-
Object.assign(contents, doc);
|
|
719
|
-
return contents;
|
|
720
|
-
};
|
|
721
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
722
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
-
return de_CommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const contents = map({
|
|
726
|
-
$metadata: deserializeMetadata(output),
|
|
727
|
-
});
|
|
728
|
-
await collectBody(output.body, context);
|
|
729
|
-
return contents;
|
|
730
|
-
};
|
|
731
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
732
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
733
|
-
return de_CommandError(output, context);
|
|
734
|
-
}
|
|
735
|
-
const contents = map({
|
|
736
|
-
$metadata: deserializeMetadata(output),
|
|
737
|
-
});
|
|
738
|
-
await collectBody(output.body, context);
|
|
739
|
-
return contents;
|
|
740
|
-
};
|
|
741
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
742
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
-
return de_CommandError(output, context);
|
|
744
|
-
}
|
|
745
|
-
const contents = map({
|
|
746
|
-
$metadata: deserializeMetadata(output),
|
|
747
|
-
});
|
|
748
|
-
await collectBody(output.body, context);
|
|
749
|
-
return contents;
|
|
750
|
-
};
|
|
751
|
-
export const de_UpdateRouteCommand = async (output, context) => {
|
|
752
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
753
|
-
return de_CommandError(output, context);
|
|
754
|
-
}
|
|
755
|
-
const contents = map({
|
|
756
|
-
$metadata: deserializeMetadata(output),
|
|
757
|
-
});
|
|
758
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
759
|
-
const doc = take(data, {
|
|
760
|
-
ApplicationId: __expectString,
|
|
761
|
-
Arn: __expectString,
|
|
762
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
763
|
-
RouteId: __expectString,
|
|
764
|
-
ServiceId: __expectString,
|
|
765
|
-
State: __expectString,
|
|
766
|
-
});
|
|
767
|
-
Object.assign(contents, doc);
|
|
768
|
-
return contents;
|
|
769
|
-
};
|
|
770
|
-
const de_CommandError = async (output, context) => {
|
|
771
|
-
const parsedOutput = {
|
|
772
|
-
...output,
|
|
773
|
-
body: await parseErrorBody(output.body, context),
|
|
774
|
-
};
|
|
775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
|
-
switch (errorCode) {
|
|
777
|
-
case "AccessDeniedException":
|
|
778
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
779
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
780
|
-
case "ConflictException":
|
|
781
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
782
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
783
|
-
case "InternalServerException":
|
|
784
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
785
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ResourceNotFoundException":
|
|
787
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
788
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ServiceQuotaExceededException":
|
|
790
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
791
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ThrottlingException":
|
|
793
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
794
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
797
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
-
case "InvalidResourcePolicyException":
|
|
799
|
-
case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
|
|
800
|
-
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
801
|
-
default:
|
|
802
|
-
const parsedBody = parsedOutput.body;
|
|
803
|
-
return throwDefaultError({
|
|
804
|
-
output,
|
|
805
|
-
parsedBody,
|
|
806
|
-
errorCode,
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
811
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
812
|
-
const contents = map({});
|
|
813
|
-
const data = parsedOutput.body;
|
|
814
|
-
const doc = take(data, {
|
|
815
|
-
Message: __expectString,
|
|
816
|
-
});
|
|
817
|
-
Object.assign(contents, doc);
|
|
818
|
-
const exception = new AccessDeniedException({
|
|
819
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
820
|
-
...contents,
|
|
821
|
-
});
|
|
822
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
823
|
-
};
|
|
824
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
825
|
-
const contents = map({});
|
|
826
|
-
const data = parsedOutput.body;
|
|
827
|
-
const doc = take(data, {
|
|
828
|
-
Message: __expectString,
|
|
829
|
-
ResourceId: __expectString,
|
|
830
|
-
ResourceType: __expectString,
|
|
831
|
-
});
|
|
832
|
-
Object.assign(contents, doc);
|
|
833
|
-
const exception = new ConflictException({
|
|
834
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
835
|
-
...contents,
|
|
836
|
-
});
|
|
837
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
838
|
-
};
|
|
839
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
840
|
-
const contents = map({});
|
|
841
|
-
const data = parsedOutput.body;
|
|
842
|
-
const doc = take(data, {
|
|
843
|
-
Message: __expectString,
|
|
844
|
-
});
|
|
845
|
-
Object.assign(contents, doc);
|
|
846
|
-
const exception = new InternalServerException({
|
|
847
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
848
|
-
...contents,
|
|
849
|
-
});
|
|
850
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
851
|
-
};
|
|
852
|
-
const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
853
|
-
const contents = map({});
|
|
854
|
-
const data = parsedOutput.body;
|
|
855
|
-
const doc = take(data, {
|
|
856
|
-
Message: __expectString,
|
|
857
|
-
});
|
|
858
|
-
Object.assign(contents, doc);
|
|
859
|
-
const exception = new InvalidResourcePolicyException({
|
|
860
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
861
|
-
...contents,
|
|
862
|
-
});
|
|
863
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
864
|
-
};
|
|
865
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
866
|
-
const contents = map({});
|
|
867
|
-
const data = parsedOutput.body;
|
|
868
|
-
const doc = take(data, {
|
|
869
|
-
Message: __expectString,
|
|
870
|
-
ResourceId: __expectString,
|
|
871
|
-
ResourceType: __expectString,
|
|
872
|
-
});
|
|
873
|
-
Object.assign(contents, doc);
|
|
874
|
-
const exception = new ResourceNotFoundException({
|
|
875
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
876
|
-
...contents,
|
|
877
|
-
});
|
|
878
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
879
|
-
};
|
|
880
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
881
|
-
const contents = map({});
|
|
882
|
-
const data = parsedOutput.body;
|
|
883
|
-
const doc = take(data, {
|
|
884
|
-
Message: __expectString,
|
|
885
|
-
QuotaCode: __expectString,
|
|
886
|
-
ResourceId: __expectString,
|
|
887
|
-
ResourceType: __expectString,
|
|
888
|
-
ServiceCode: __expectString,
|
|
889
|
-
});
|
|
890
|
-
Object.assign(contents, doc);
|
|
891
|
-
const exception = new ServiceQuotaExceededException({
|
|
892
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
893
|
-
...contents,
|
|
894
|
-
});
|
|
895
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
896
|
-
};
|
|
897
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
898
|
-
const contents = map({
|
|
899
|
-
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
900
|
-
});
|
|
901
|
-
const data = parsedOutput.body;
|
|
902
|
-
const doc = take(data, {
|
|
903
|
-
Message: __expectString,
|
|
904
|
-
QuotaCode: __expectString,
|
|
905
|
-
ServiceCode: __expectString,
|
|
906
|
-
});
|
|
907
|
-
Object.assign(contents, doc);
|
|
908
|
-
const exception = new ThrottlingException({
|
|
909
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
910
|
-
...contents,
|
|
911
|
-
});
|
|
912
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
913
|
-
};
|
|
914
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
915
|
-
const contents = map({});
|
|
916
|
-
const data = parsedOutput.body;
|
|
917
|
-
const doc = take(data, {
|
|
918
|
-
Message: __expectString,
|
|
919
|
-
});
|
|
920
|
-
Object.assign(contents, doc);
|
|
921
|
-
const exception = new ValidationException({
|
|
922
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
923
|
-
...contents,
|
|
924
|
-
});
|
|
925
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
926
|
-
};
|
|
927
|
-
const de_ApplicationSummaries = (output, context) => {
|
|
928
|
-
const retVal = (output || [])
|
|
929
|
-
.filter((e) => e != null)
|
|
930
|
-
.map((entry) => {
|
|
931
|
-
return de_ApplicationSummary(entry, context);
|
|
932
|
-
});
|
|
933
|
-
return retVal;
|
|
934
|
-
};
|
|
935
|
-
const de_ApplicationSummary = (output, context) => {
|
|
936
|
-
return take(output, {
|
|
937
|
-
ApiGatewayProxy: _json,
|
|
938
|
-
ApplicationId: __expectString,
|
|
939
|
-
Arn: __expectString,
|
|
940
|
-
CreatedByAccountId: __expectString,
|
|
941
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
942
|
-
EnvironmentId: __expectString,
|
|
943
|
-
Error: _json,
|
|
944
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
945
|
-
Name: __expectString,
|
|
946
|
-
OwnerAccountId: __expectString,
|
|
947
|
-
ProxyType: __expectString,
|
|
948
|
-
State: __expectString,
|
|
949
|
-
Tags: _json,
|
|
950
|
-
VpcId: __expectString,
|
|
951
|
-
});
|
|
952
|
-
};
|
|
953
|
-
const de_EnvironmentSummaries = (output, context) => {
|
|
954
|
-
const retVal = (output || [])
|
|
955
|
-
.filter((e) => e != null)
|
|
956
|
-
.map((entry) => {
|
|
957
|
-
return de_EnvironmentSummary(entry, context);
|
|
958
|
-
});
|
|
959
|
-
return retVal;
|
|
960
|
-
};
|
|
961
|
-
const de_EnvironmentSummary = (output, context) => {
|
|
962
|
-
return take(output, {
|
|
963
|
-
Arn: __expectString,
|
|
964
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
965
|
-
Description: __expectString,
|
|
966
|
-
EnvironmentId: __expectString,
|
|
967
|
-
Error: _json,
|
|
968
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
969
|
-
Name: __expectString,
|
|
970
|
-
NetworkFabricType: __expectString,
|
|
971
|
-
OwnerAccountId: __expectString,
|
|
972
|
-
State: __expectString,
|
|
973
|
-
Tags: _json,
|
|
974
|
-
TransitGatewayId: __expectString,
|
|
975
|
-
});
|
|
976
|
-
};
|
|
977
|
-
const de_EnvironmentVpc = (output, context) => {
|
|
978
|
-
return take(output, {
|
|
979
|
-
AccountId: __expectString,
|
|
980
|
-
CidrBlocks: _json,
|
|
981
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
982
|
-
EnvironmentId: __expectString,
|
|
983
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
984
|
-
VpcId: __expectString,
|
|
985
|
-
VpcName: __expectString,
|
|
986
|
-
});
|
|
987
|
-
};
|
|
988
|
-
const de_EnvironmentVpcs = (output, context) => {
|
|
989
|
-
const retVal = (output || [])
|
|
990
|
-
.filter((e) => e != null)
|
|
991
|
-
.map((entry) => {
|
|
992
|
-
return de_EnvironmentVpc(entry, context);
|
|
993
|
-
});
|
|
994
|
-
return retVal;
|
|
995
|
-
};
|
|
996
|
-
const de_RouteSummaries = (output, context) => {
|
|
997
|
-
const retVal = (output || [])
|
|
998
|
-
.filter((e) => e != null)
|
|
999
|
-
.map((entry) => {
|
|
1000
|
-
return de_RouteSummary(entry, context);
|
|
1001
|
-
});
|
|
1002
|
-
return retVal;
|
|
1003
|
-
};
|
|
1004
|
-
const de_RouteSummary = (output, context) => {
|
|
1005
|
-
return take(output, {
|
|
1006
|
-
AppendSourcePath: __expectBoolean,
|
|
1007
|
-
ApplicationId: __expectString,
|
|
1008
|
-
Arn: __expectString,
|
|
1009
|
-
CreatedByAccountId: __expectString,
|
|
1010
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1011
|
-
EnvironmentId: __expectString,
|
|
1012
|
-
Error: _json,
|
|
1013
|
-
IncludeChildPaths: __expectBoolean,
|
|
1014
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1015
|
-
Methods: _json,
|
|
1016
|
-
OwnerAccountId: __expectString,
|
|
1017
|
-
PathResourceToId: _json,
|
|
1018
|
-
RouteId: __expectString,
|
|
1019
|
-
RouteType: __expectString,
|
|
1020
|
-
ServiceId: __expectString,
|
|
1021
|
-
SourcePath: __expectString,
|
|
1022
|
-
State: __expectString,
|
|
1023
|
-
Tags: _json,
|
|
1024
|
-
});
|
|
1025
|
-
};
|
|
1026
|
-
const de_ServiceSummaries = (output, context) => {
|
|
1027
|
-
const retVal = (output || [])
|
|
1028
|
-
.filter((e) => e != null)
|
|
1029
|
-
.map((entry) => {
|
|
1030
|
-
return de_ServiceSummary(entry, context);
|
|
1031
|
-
});
|
|
1032
|
-
return retVal;
|
|
1033
|
-
};
|
|
1034
|
-
const de_ServiceSummary = (output, context) => {
|
|
1035
|
-
return take(output, {
|
|
1036
|
-
ApplicationId: __expectString,
|
|
1037
|
-
Arn: __expectString,
|
|
1038
|
-
CreatedByAccountId: __expectString,
|
|
1039
|
-
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1040
|
-
Description: __expectString,
|
|
1041
|
-
EndpointType: __expectString,
|
|
1042
|
-
EnvironmentId: __expectString,
|
|
1043
|
-
Error: _json,
|
|
1044
|
-
LambdaEndpoint: _json,
|
|
1045
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1046
|
-
Name: __expectString,
|
|
1047
|
-
OwnerAccountId: __expectString,
|
|
1048
|
-
ServiceId: __expectString,
|
|
1049
|
-
State: __expectString,
|
|
1050
|
-
Tags: _json,
|
|
1051
|
-
UrlEndpoint: _json,
|
|
1052
|
-
VpcId: __expectString,
|
|
1053
|
-
});
|
|
1054
|
-
};
|
|
1055
|
-
const deserializeMetadata = (output) => ({
|
|
1056
|
-
httpStatusCode: output.statusCode,
|
|
1057
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1058
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1059
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1060
|
-
});
|
|
1061
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1062
|
-
const _MR = "MaxResults";
|
|
1063
|
-
const _NT = "NextToken";
|
|
1064
|
-
const _RAS = "RetryAfterSeconds";
|
|
1065
|
-
const _TK = "TagKeys";
|
|
1066
|
-
const _mR = "maxResults";
|
|
1067
|
-
const _nT = "nextToken";
|
|
1068
|
-
const _ra = "retry-after";
|
|
1069
|
-
const _tK = "tagKeys";
|