@aws-sdk/client-migration-hub-refactor-spaces 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +437 -995
- package/dist-es/protocols/Aws_restJson1.js +531 -1000
- package/package.json +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { MigrationHubRefactorSpacesServiceException as __BaseException } from "../models/MigrationHubRefactorSpacesServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidResourcePolicyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
7
|
export var serializeAws_restJson1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
9
|
var _c;
|
|
10
10
|
return __generator(this, function (_d) {
|
|
11
11
|
switch (_d.label) {
|
|
@@ -17,16 +17,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
19
19
|
"/environments/{EnvironmentIdentifier}/applications";
|
|
20
|
-
|
|
21
|
-
labelValue = input.EnvironmentIdentifier;
|
|
22
|
-
if (labelValue.length <= 0) {
|
|
23
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
24
|
-
}
|
|
25
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
29
|
-
}
|
|
20
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
30
21
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiGatewayProxy != null && {
|
|
31
22
|
ApiGatewayProxy: serializeAws_restJson1ApiGatewayProxyInput(input.ApiGatewayProxy, context),
|
|
32
23
|
})), { ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Name != null && { Name: input.Name })), (input.ProxyType != null && { ProxyType: input.ProxyType })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.VpcId != null && { VpcId: input.VpcId })));
|
|
@@ -68,7 +59,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
68
59
|
});
|
|
69
60
|
}); };
|
|
70
61
|
export var serializeAws_restJson1CreateRouteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
62
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
72
63
|
var _c;
|
|
73
64
|
return __generator(this, function (_d) {
|
|
74
65
|
switch (_d.label) {
|
|
@@ -80,26 +71,8 @@ export var serializeAws_restJson1CreateRouteCommand = function (input, context)
|
|
|
80
71
|
};
|
|
81
72
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
82
73
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes";
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
if (labelValue.length <= 0) {
|
|
86
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
87
|
-
}
|
|
88
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
92
|
-
}
|
|
93
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
94
|
-
labelValue = input.ApplicationIdentifier;
|
|
95
|
-
if (labelValue.length <= 0) {
|
|
96
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
97
|
-
}
|
|
98
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
102
|
-
}
|
|
74
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
75
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
103
76
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.DefaultRoute != null && {
|
|
104
77
|
DefaultRoute: serializeAws_restJson1DefaultRouteInput(input.DefaultRoute, context),
|
|
105
78
|
})), (input.RouteType != null && { RouteType: input.RouteType })), (input.ServiceIdentifier != null && { ServiceIdentifier: input.ServiceIdentifier })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.UriPathRoute != null && {
|
|
@@ -118,7 +91,7 @@ export var serializeAws_restJson1CreateRouteCommand = function (input, context)
|
|
|
118
91
|
});
|
|
119
92
|
}); };
|
|
120
93
|
export var serializeAws_restJson1CreateServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
121
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
94
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
122
95
|
var _c;
|
|
123
96
|
return __generator(this, function (_d) {
|
|
124
97
|
switch (_d.label) {
|
|
@@ -130,26 +103,8 @@ export var serializeAws_restJson1CreateServiceCommand = function (input, context
|
|
|
130
103
|
};
|
|
131
104
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
132
105
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services";
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (labelValue.length <= 0) {
|
|
136
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
137
|
-
}
|
|
138
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
142
|
-
}
|
|
143
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
144
|
-
labelValue = input.ApplicationIdentifier;
|
|
145
|
-
if (labelValue.length <= 0) {
|
|
146
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
147
|
-
}
|
|
148
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
152
|
-
}
|
|
106
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
107
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
153
108
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.EndpointType != null && { EndpointType: input.EndpointType })), (input.LambdaEndpoint != null && {
|
|
154
109
|
LambdaEndpoint: serializeAws_restJson1LambdaEndpointInput(input.LambdaEndpoint, context),
|
|
155
110
|
})), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.UrlEndpoint != null && {
|
|
@@ -168,7 +123,7 @@ export var serializeAws_restJson1CreateServiceCommand = function (input, context
|
|
|
168
123
|
});
|
|
169
124
|
}); };
|
|
170
125
|
export var serializeAws_restJson1DeleteApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
171
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
126
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
172
127
|
return __generator(this, function (_c) {
|
|
173
128
|
switch (_c.label) {
|
|
174
129
|
case 0: return [4, context.endpoint()];
|
|
@@ -177,26 +132,8 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
|
|
|
177
132
|
headers = {};
|
|
178
133
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
179
134
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}";
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
if (labelValue.length <= 0) {
|
|
183
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
184
|
-
}
|
|
185
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
189
|
-
}
|
|
190
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
191
|
-
labelValue = input.ApplicationIdentifier;
|
|
192
|
-
if (labelValue.length <= 0) {
|
|
193
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
194
|
-
}
|
|
195
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
199
|
-
}
|
|
135
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
136
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
200
137
|
return [2, new __HttpRequest({
|
|
201
138
|
protocol: protocol,
|
|
202
139
|
hostname: hostname,
|
|
@@ -210,7 +147,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
|
|
|
210
147
|
});
|
|
211
148
|
}); };
|
|
212
149
|
export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
213
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
150
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
214
151
|
return __generator(this, function (_c) {
|
|
215
152
|
switch (_c.label) {
|
|
216
153
|
case 0: return [4, context.endpoint()];
|
|
@@ -218,16 +155,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
218
155
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
219
156
|
headers = {};
|
|
220
157
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environments/{EnvironmentIdentifier}";
|
|
221
|
-
|
|
222
|
-
labelValue = input.EnvironmentIdentifier;
|
|
223
|
-
if (labelValue.length <= 0) {
|
|
224
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
225
|
-
}
|
|
226
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
230
|
-
}
|
|
158
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
231
159
|
return [2, new __HttpRequest({
|
|
232
160
|
protocol: protocol,
|
|
233
161
|
hostname: hostname,
|
|
@@ -241,7 +169,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
241
169
|
});
|
|
242
170
|
}); };
|
|
243
171
|
export var serializeAws_restJson1DeleteResourcePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
244
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
172
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
245
173
|
return __generator(this, function (_c) {
|
|
246
174
|
switch (_c.label) {
|
|
247
175
|
case 0: return [4, context.endpoint()];
|
|
@@ -249,16 +177,7 @@ export var serializeAws_restJson1DeleteResourcePolicyCommand = function (input,
|
|
|
249
177
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
250
178
|
headers = {};
|
|
251
179
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resourcepolicy/{Identifier}";
|
|
252
|
-
|
|
253
|
-
labelValue = input.Identifier;
|
|
254
|
-
if (labelValue.length <= 0) {
|
|
255
|
-
throw new Error("Empty value provided for input HTTP label: Identifier.");
|
|
256
|
-
}
|
|
257
|
-
resolvedPath = resolvedPath.replace("{Identifier}", __extendedEncodeURIComponent(labelValue));
|
|
258
|
-
}
|
|
259
|
-
else {
|
|
260
|
-
throw new Error("No value provided for input HTTP label: Identifier.");
|
|
261
|
-
}
|
|
180
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", function () { return input.Identifier; }, "{Identifier}", false);
|
|
262
181
|
return [2, new __HttpRequest({
|
|
263
182
|
protocol: protocol,
|
|
264
183
|
hostname: hostname,
|
|
@@ -272,7 +191,7 @@ export var serializeAws_restJson1DeleteResourcePolicyCommand = function (input,
|
|
|
272
191
|
});
|
|
273
192
|
}); };
|
|
274
193
|
export var serializeAws_restJson1DeleteRouteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
275
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
194
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
276
195
|
return __generator(this, function (_c) {
|
|
277
196
|
switch (_c.label) {
|
|
278
197
|
case 0: return [4, context.endpoint()];
|
|
@@ -281,36 +200,9 @@ export var serializeAws_restJson1DeleteRouteCommand = function (input, context)
|
|
|
281
200
|
headers = {};
|
|
282
201
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
283
202
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}";
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
288
|
-
}
|
|
289
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
293
|
-
}
|
|
294
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
295
|
-
labelValue = input.ApplicationIdentifier;
|
|
296
|
-
if (labelValue.length <= 0) {
|
|
297
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
298
|
-
}
|
|
299
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
303
|
-
}
|
|
304
|
-
if (input.RouteIdentifier !== undefined) {
|
|
305
|
-
labelValue = input.RouteIdentifier;
|
|
306
|
-
if (labelValue.length <= 0) {
|
|
307
|
-
throw new Error("Empty value provided for input HTTP label: RouteIdentifier.");
|
|
308
|
-
}
|
|
309
|
-
resolvedPath = resolvedPath.replace("{RouteIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
310
|
-
}
|
|
311
|
-
else {
|
|
312
|
-
throw new Error("No value provided for input HTTP label: RouteIdentifier.");
|
|
313
|
-
}
|
|
203
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
204
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
205
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "RouteIdentifier", function () { return input.RouteIdentifier; }, "{RouteIdentifier}", false);
|
|
314
206
|
return [2, new __HttpRequest({
|
|
315
207
|
protocol: protocol,
|
|
316
208
|
hostname: hostname,
|
|
@@ -324,7 +216,7 @@ export var serializeAws_restJson1DeleteRouteCommand = function (input, context)
|
|
|
324
216
|
});
|
|
325
217
|
}); };
|
|
326
218
|
export var serializeAws_restJson1DeleteServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
327
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
219
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
328
220
|
return __generator(this, function (_c) {
|
|
329
221
|
switch (_c.label) {
|
|
330
222
|
case 0: return [4, context.endpoint()];
|
|
@@ -333,36 +225,9 @@ export var serializeAws_restJson1DeleteServiceCommand = function (input, context
|
|
|
333
225
|
headers = {};
|
|
334
226
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
335
227
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}";
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
340
|
-
}
|
|
341
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
345
|
-
}
|
|
346
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
347
|
-
labelValue = input.ApplicationIdentifier;
|
|
348
|
-
if (labelValue.length <= 0) {
|
|
349
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
350
|
-
}
|
|
351
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
355
|
-
}
|
|
356
|
-
if (input.ServiceIdentifier !== undefined) {
|
|
357
|
-
labelValue = input.ServiceIdentifier;
|
|
358
|
-
if (labelValue.length <= 0) {
|
|
359
|
-
throw new Error("Empty value provided for input HTTP label: ServiceIdentifier.");
|
|
360
|
-
}
|
|
361
|
-
resolvedPath = resolvedPath.replace("{ServiceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
throw new Error("No value provided for input HTTP label: ServiceIdentifier.");
|
|
365
|
-
}
|
|
228
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
229
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
230
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ServiceIdentifier", function () { return input.ServiceIdentifier; }, "{ServiceIdentifier}", false);
|
|
366
231
|
return [2, new __HttpRequest({
|
|
367
232
|
protocol: protocol,
|
|
368
233
|
hostname: hostname,
|
|
@@ -376,7 +241,7 @@ export var serializeAws_restJson1DeleteServiceCommand = function (input, context
|
|
|
376
241
|
});
|
|
377
242
|
}); };
|
|
378
243
|
export var serializeAws_restJson1GetApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
379
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
244
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
380
245
|
return __generator(this, function (_c) {
|
|
381
246
|
switch (_c.label) {
|
|
382
247
|
case 0: return [4, context.endpoint()];
|
|
@@ -385,26 +250,8 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
|
|
|
385
250
|
headers = {};
|
|
386
251
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
387
252
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}";
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
if (labelValue.length <= 0) {
|
|
391
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
392
|
-
}
|
|
393
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
397
|
-
}
|
|
398
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
399
|
-
labelValue = input.ApplicationIdentifier;
|
|
400
|
-
if (labelValue.length <= 0) {
|
|
401
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
402
|
-
}
|
|
403
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
404
|
-
}
|
|
405
|
-
else {
|
|
406
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
407
|
-
}
|
|
253
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
254
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
408
255
|
return [2, new __HttpRequest({
|
|
409
256
|
protocol: protocol,
|
|
410
257
|
hostname: hostname,
|
|
@@ -418,7 +265,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
|
|
|
418
265
|
});
|
|
419
266
|
}); };
|
|
420
267
|
export var serializeAws_restJson1GetEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
421
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
268
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
422
269
|
return __generator(this, function (_c) {
|
|
423
270
|
switch (_c.label) {
|
|
424
271
|
case 0: return [4, context.endpoint()];
|
|
@@ -426,16 +273,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
426
273
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
427
274
|
headers = {};
|
|
428
275
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environments/{EnvironmentIdentifier}";
|
|
429
|
-
|
|
430
|
-
labelValue = input.EnvironmentIdentifier;
|
|
431
|
-
if (labelValue.length <= 0) {
|
|
432
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
433
|
-
}
|
|
434
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
438
|
-
}
|
|
276
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
439
277
|
return [2, new __HttpRequest({
|
|
440
278
|
protocol: protocol,
|
|
441
279
|
hostname: hostname,
|
|
@@ -449,7 +287,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
449
287
|
});
|
|
450
288
|
}); };
|
|
451
289
|
export var serializeAws_restJson1GetResourcePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
452
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
290
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
453
291
|
return __generator(this, function (_c) {
|
|
454
292
|
switch (_c.label) {
|
|
455
293
|
case 0: return [4, context.endpoint()];
|
|
@@ -457,16 +295,7 @@ export var serializeAws_restJson1GetResourcePolicyCommand = function (input, con
|
|
|
457
295
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
458
296
|
headers = {};
|
|
459
297
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resourcepolicy/{Identifier}";
|
|
460
|
-
|
|
461
|
-
labelValue = input.Identifier;
|
|
462
|
-
if (labelValue.length <= 0) {
|
|
463
|
-
throw new Error("Empty value provided for input HTTP label: Identifier.");
|
|
464
|
-
}
|
|
465
|
-
resolvedPath = resolvedPath.replace("{Identifier}", __extendedEncodeURIComponent(labelValue));
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
throw new Error("No value provided for input HTTP label: Identifier.");
|
|
469
|
-
}
|
|
298
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", function () { return input.Identifier; }, "{Identifier}", false);
|
|
470
299
|
return [2, new __HttpRequest({
|
|
471
300
|
protocol: protocol,
|
|
472
301
|
hostname: hostname,
|
|
@@ -480,7 +309,7 @@ export var serializeAws_restJson1GetResourcePolicyCommand = function (input, con
|
|
|
480
309
|
});
|
|
481
310
|
}); };
|
|
482
311
|
export var serializeAws_restJson1GetRouteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
483
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
312
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
484
313
|
return __generator(this, function (_c) {
|
|
485
314
|
switch (_c.label) {
|
|
486
315
|
case 0: return [4, context.endpoint()];
|
|
@@ -489,36 +318,9 @@ export var serializeAws_restJson1GetRouteCommand = function (input, context) { r
|
|
|
489
318
|
headers = {};
|
|
490
319
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
491
320
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}";
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
496
|
-
}
|
|
497
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
501
|
-
}
|
|
502
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
503
|
-
labelValue = input.ApplicationIdentifier;
|
|
504
|
-
if (labelValue.length <= 0) {
|
|
505
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
506
|
-
}
|
|
507
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
508
|
-
}
|
|
509
|
-
else {
|
|
510
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
511
|
-
}
|
|
512
|
-
if (input.RouteIdentifier !== undefined) {
|
|
513
|
-
labelValue = input.RouteIdentifier;
|
|
514
|
-
if (labelValue.length <= 0) {
|
|
515
|
-
throw new Error("Empty value provided for input HTTP label: RouteIdentifier.");
|
|
516
|
-
}
|
|
517
|
-
resolvedPath = resolvedPath.replace("{RouteIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
throw new Error("No value provided for input HTTP label: RouteIdentifier.");
|
|
521
|
-
}
|
|
321
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
322
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
323
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "RouteIdentifier", function () { return input.RouteIdentifier; }, "{RouteIdentifier}", false);
|
|
522
324
|
return [2, new __HttpRequest({
|
|
523
325
|
protocol: protocol,
|
|
524
326
|
hostname: hostname,
|
|
@@ -532,7 +334,7 @@ export var serializeAws_restJson1GetRouteCommand = function (input, context) { r
|
|
|
532
334
|
});
|
|
533
335
|
}); };
|
|
534
336
|
export var serializeAws_restJson1GetServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
535
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
337
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
536
338
|
return __generator(this, function (_c) {
|
|
537
339
|
switch (_c.label) {
|
|
538
340
|
case 0: return [4, context.endpoint()];
|
|
@@ -541,36 +343,9 @@ export var serializeAws_restJson1GetServiceCommand = function (input, context) {
|
|
|
541
343
|
headers = {};
|
|
542
344
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
543
345
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}";
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
548
|
-
}
|
|
549
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
550
|
-
}
|
|
551
|
-
else {
|
|
552
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
553
|
-
}
|
|
554
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
555
|
-
labelValue = input.ApplicationIdentifier;
|
|
556
|
-
if (labelValue.length <= 0) {
|
|
557
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
558
|
-
}
|
|
559
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
563
|
-
}
|
|
564
|
-
if (input.ServiceIdentifier !== undefined) {
|
|
565
|
-
labelValue = input.ServiceIdentifier;
|
|
566
|
-
if (labelValue.length <= 0) {
|
|
567
|
-
throw new Error("Empty value provided for input HTTP label: ServiceIdentifier.");
|
|
568
|
-
}
|
|
569
|
-
resolvedPath = resolvedPath.replace("{ServiceIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
570
|
-
}
|
|
571
|
-
else {
|
|
572
|
-
throw new Error("No value provided for input HTTP label: ServiceIdentifier.");
|
|
573
|
-
}
|
|
346
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
347
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
348
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ServiceIdentifier", function () { return input.ServiceIdentifier; }, "{ServiceIdentifier}", false);
|
|
574
349
|
return [2, new __HttpRequest({
|
|
575
350
|
protocol: protocol,
|
|
576
351
|
hostname: hostname,
|
|
@@ -584,7 +359,7 @@ export var serializeAws_restJson1GetServiceCommand = function (input, context) {
|
|
|
584
359
|
});
|
|
585
360
|
}); };
|
|
586
361
|
export var serializeAws_restJson1ListApplicationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
587
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
362
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
588
363
|
return __generator(this, function (_c) {
|
|
589
364
|
switch (_c.label) {
|
|
590
365
|
case 0: return [4, context.endpoint()];
|
|
@@ -593,17 +368,11 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
|
|
|
593
368
|
headers = {};
|
|
594
369
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
595
370
|
"/environments/{EnvironmentIdentifier}/applications";
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
602
|
-
}
|
|
603
|
-
else {
|
|
604
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
605
|
-
}
|
|
606
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
371
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
372
|
+
query = map({
|
|
373
|
+
nextToken: [, input.NextToken],
|
|
374
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
375
|
+
});
|
|
607
376
|
return [2, new __HttpRequest({
|
|
608
377
|
protocol: protocol,
|
|
609
378
|
hostname: hostname,
|
|
@@ -626,7 +395,10 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
|
|
|
626
395
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
627
396
|
headers = {};
|
|
628
397
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environments";
|
|
629
|
-
query =
|
|
398
|
+
query = map({
|
|
399
|
+
nextToken: [, input.NextToken],
|
|
400
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
401
|
+
});
|
|
630
402
|
return [2, new __HttpRequest({
|
|
631
403
|
protocol: protocol,
|
|
632
404
|
hostname: hostname,
|
|
@@ -641,7 +413,7 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
|
|
|
641
413
|
});
|
|
642
414
|
}); };
|
|
643
415
|
export var serializeAws_restJson1ListEnvironmentVpcsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
644
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
416
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
645
417
|
return __generator(this, function (_c) {
|
|
646
418
|
switch (_c.label) {
|
|
647
419
|
case 0: return [4, context.endpoint()];
|
|
@@ -650,17 +422,11 @@ export var serializeAws_restJson1ListEnvironmentVpcsCommand = function (input, c
|
|
|
650
422
|
headers = {};
|
|
651
423
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
652
424
|
"/environments/{EnvironmentIdentifier}/vpcs";
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
659
|
-
}
|
|
660
|
-
else {
|
|
661
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
662
|
-
}
|
|
663
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
425
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
426
|
+
query = map({
|
|
427
|
+
nextToken: [, input.NextToken],
|
|
428
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
429
|
+
});
|
|
664
430
|
return [2, new __HttpRequest({
|
|
665
431
|
protocol: protocol,
|
|
666
432
|
hostname: hostname,
|
|
@@ -675,7 +441,7 @@ export var serializeAws_restJson1ListEnvironmentVpcsCommand = function (input, c
|
|
|
675
441
|
});
|
|
676
442
|
}); };
|
|
677
443
|
export var serializeAws_restJson1ListRoutesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
678
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
444
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
679
445
|
return __generator(this, function (_c) {
|
|
680
446
|
switch (_c.label) {
|
|
681
447
|
case 0: return [4, context.endpoint()];
|
|
@@ -684,27 +450,12 @@ export var serializeAws_restJson1ListRoutesCommand = function (input, context) {
|
|
|
684
450
|
headers = {};
|
|
685
451
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
686
452
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes";
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
}
|
|
694
|
-
else {
|
|
695
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
696
|
-
}
|
|
697
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
698
|
-
labelValue = input.ApplicationIdentifier;
|
|
699
|
-
if (labelValue.length <= 0) {
|
|
700
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
701
|
-
}
|
|
702
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
703
|
-
}
|
|
704
|
-
else {
|
|
705
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
706
|
-
}
|
|
707
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
453
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
454
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
455
|
+
query = map({
|
|
456
|
+
nextToken: [, input.NextToken],
|
|
457
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
458
|
+
});
|
|
708
459
|
return [2, new __HttpRequest({
|
|
709
460
|
protocol: protocol,
|
|
710
461
|
hostname: hostname,
|
|
@@ -719,7 +470,7 @@ export var serializeAws_restJson1ListRoutesCommand = function (input, context) {
|
|
|
719
470
|
});
|
|
720
471
|
}); };
|
|
721
472
|
export var serializeAws_restJson1ListServicesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
722
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
473
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
723
474
|
return __generator(this, function (_c) {
|
|
724
475
|
switch (_c.label) {
|
|
725
476
|
case 0: return [4, context.endpoint()];
|
|
@@ -728,27 +479,12 @@ export var serializeAws_restJson1ListServicesCommand = function (input, context)
|
|
|
728
479
|
headers = {};
|
|
729
480
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
730
481
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services";
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
}
|
|
738
|
-
else {
|
|
739
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
740
|
-
}
|
|
741
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
742
|
-
labelValue = input.ApplicationIdentifier;
|
|
743
|
-
if (labelValue.length <= 0) {
|
|
744
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
745
|
-
}
|
|
746
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
747
|
-
}
|
|
748
|
-
else {
|
|
749
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
750
|
-
}
|
|
751
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
482
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
483
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
484
|
+
query = map({
|
|
485
|
+
nextToken: [, input.NextToken],
|
|
486
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
487
|
+
});
|
|
752
488
|
return [2, new __HttpRequest({
|
|
753
489
|
protocol: protocol,
|
|
754
490
|
hostname: hostname,
|
|
@@ -763,7 +499,7 @@ export var serializeAws_restJson1ListServicesCommand = function (input, context)
|
|
|
763
499
|
});
|
|
764
500
|
}); };
|
|
765
501
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
766
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
502
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
767
503
|
return __generator(this, function (_c) {
|
|
768
504
|
switch (_c.label) {
|
|
769
505
|
case 0: return [4, context.endpoint()];
|
|
@@ -771,16 +507,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
771
507
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
772
508
|
headers = {};
|
|
773
509
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
774
|
-
|
|
775
|
-
labelValue = input.ResourceArn;
|
|
776
|
-
if (labelValue.length <= 0) {
|
|
777
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
778
|
-
}
|
|
779
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
780
|
-
}
|
|
781
|
-
else {
|
|
782
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
783
|
-
}
|
|
510
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
784
511
|
return [2, new __HttpRequest({
|
|
785
512
|
protocol: protocol,
|
|
786
513
|
hostname: hostname,
|
|
@@ -818,7 +545,7 @@ export var serializeAws_restJson1PutResourcePolicyCommand = function (input, con
|
|
|
818
545
|
});
|
|
819
546
|
}); };
|
|
820
547
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
821
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
548
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
822
549
|
return __generator(this, function (_c) {
|
|
823
550
|
switch (_c.label) {
|
|
824
551
|
case 0: return [4, context.endpoint()];
|
|
@@ -828,16 +555,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
828
555
|
"content-type": "application/json",
|
|
829
556
|
};
|
|
830
557
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
831
|
-
|
|
832
|
-
labelValue = input.ResourceArn;
|
|
833
|
-
if (labelValue.length <= 0) {
|
|
834
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
835
|
-
}
|
|
836
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
837
|
-
}
|
|
838
|
-
else {
|
|
839
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
840
|
-
}
|
|
558
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
841
559
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
842
560
|
return [2, new __HttpRequest({
|
|
843
561
|
protocol: protocol,
|
|
@@ -852,7 +570,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
852
570
|
});
|
|
853
571
|
}); };
|
|
854
572
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
855
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
573
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
856
574
|
return __generator(this, function (_c) {
|
|
857
575
|
switch (_c.label) {
|
|
858
576
|
case 0: return [4, context.endpoint()];
|
|
@@ -860,17 +578,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
860
578
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
861
579
|
headers = {};
|
|
862
580
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
}
|
|
868
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
869
|
-
}
|
|
870
|
-
else {
|
|
871
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
872
|
-
}
|
|
873
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
581
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
582
|
+
query = map({
|
|
583
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
584
|
+
});
|
|
874
585
|
return [2, new __HttpRequest({
|
|
875
586
|
protocol: protocol,
|
|
876
587
|
hostname: hostname,
|
|
@@ -885,7 +596,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
885
596
|
});
|
|
886
597
|
}); };
|
|
887
598
|
export var serializeAws_restJson1UpdateRouteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
888
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
599
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
889
600
|
return __generator(this, function (_c) {
|
|
890
601
|
switch (_c.label) {
|
|
891
602
|
case 0: return [4, context.endpoint()];
|
|
@@ -896,36 +607,9 @@ export var serializeAws_restJson1UpdateRouteCommand = function (input, context)
|
|
|
896
607
|
};
|
|
897
608
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
898
609
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}";
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentIdentifier.");
|
|
903
|
-
}
|
|
904
|
-
resolvedPath = resolvedPath.replace("{EnvironmentIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
905
|
-
}
|
|
906
|
-
else {
|
|
907
|
-
throw new Error("No value provided for input HTTP label: EnvironmentIdentifier.");
|
|
908
|
-
}
|
|
909
|
-
if (input.ApplicationIdentifier !== undefined) {
|
|
910
|
-
labelValue = input.ApplicationIdentifier;
|
|
911
|
-
if (labelValue.length <= 0) {
|
|
912
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationIdentifier.");
|
|
913
|
-
}
|
|
914
|
-
resolvedPath = resolvedPath.replace("{ApplicationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
915
|
-
}
|
|
916
|
-
else {
|
|
917
|
-
throw new Error("No value provided for input HTTP label: ApplicationIdentifier.");
|
|
918
|
-
}
|
|
919
|
-
if (input.RouteIdentifier !== undefined) {
|
|
920
|
-
labelValue = input.RouteIdentifier;
|
|
921
|
-
if (labelValue.length <= 0) {
|
|
922
|
-
throw new Error("Empty value provided for input HTTP label: RouteIdentifier.");
|
|
923
|
-
}
|
|
924
|
-
resolvedPath = resolvedPath.replace("{RouteIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
925
|
-
}
|
|
926
|
-
else {
|
|
927
|
-
throw new Error("No value provided for input HTTP label: RouteIdentifier.");
|
|
928
|
-
}
|
|
610
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", function () { return input.EnvironmentIdentifier; }, "{EnvironmentIdentifier}", false);
|
|
611
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", function () { return input.ApplicationIdentifier; }, "{ApplicationIdentifier}", false);
|
|
612
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "RouteIdentifier", function () { return input.RouteIdentifier; }, "{RouteIdentifier}", false);
|
|
929
613
|
body = JSON.stringify(__assign({}, (input.ActivationState != null && { ActivationState: input.ActivationState })));
|
|
930
614
|
return [2, new __HttpRequest({
|
|
931
615
|
protocol: protocol,
|
|
@@ -947,72 +631,59 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
|
|
|
947
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
948
632
|
return [2, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
|
|
949
633
|
}
|
|
950
|
-
contents = {
|
|
634
|
+
contents = map({
|
|
951
635
|
$metadata: deserializeMetadata(output),
|
|
952
|
-
|
|
953
|
-
ApplicationId: undefined,
|
|
954
|
-
Arn: undefined,
|
|
955
|
-
CreatedByAccountId: undefined,
|
|
956
|
-
CreatedTime: undefined,
|
|
957
|
-
EnvironmentId: undefined,
|
|
958
|
-
LastUpdatedTime: undefined,
|
|
959
|
-
Name: undefined,
|
|
960
|
-
OwnerAccountId: undefined,
|
|
961
|
-
ProxyType: undefined,
|
|
962
|
-
State: undefined,
|
|
963
|
-
Tags: undefined,
|
|
964
|
-
VpcId: undefined,
|
|
965
|
-
};
|
|
636
|
+
});
|
|
966
637
|
_a = __expectNonNull;
|
|
967
638
|
_b = __expectObject;
|
|
968
639
|
return [4, parseBody(output.body, context)];
|
|
969
640
|
case 1:
|
|
970
641
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
971
|
-
if (data.ApiGatewayProxy
|
|
642
|
+
if (data.ApiGatewayProxy != null) {
|
|
972
643
|
contents.ApiGatewayProxy = deserializeAws_restJson1ApiGatewayProxyInput(data.ApiGatewayProxy, context);
|
|
973
644
|
}
|
|
974
|
-
if (data.ApplicationId
|
|
645
|
+
if (data.ApplicationId != null) {
|
|
975
646
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
976
647
|
}
|
|
977
|
-
if (data.Arn
|
|
648
|
+
if (data.Arn != null) {
|
|
978
649
|
contents.Arn = __expectString(data.Arn);
|
|
979
650
|
}
|
|
980
|
-
if (data.CreatedByAccountId
|
|
651
|
+
if (data.CreatedByAccountId != null) {
|
|
981
652
|
contents.CreatedByAccountId = __expectString(data.CreatedByAccountId);
|
|
982
653
|
}
|
|
983
|
-
if (data.CreatedTime
|
|
654
|
+
if (data.CreatedTime != null) {
|
|
984
655
|
contents.CreatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTime)));
|
|
985
656
|
}
|
|
986
|
-
if (data.EnvironmentId
|
|
657
|
+
if (data.EnvironmentId != null) {
|
|
987
658
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
988
659
|
}
|
|
989
|
-
if (data.LastUpdatedTime
|
|
660
|
+
if (data.LastUpdatedTime != null) {
|
|
990
661
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
991
662
|
}
|
|
992
|
-
if (data.Name
|
|
663
|
+
if (data.Name != null) {
|
|
993
664
|
contents.Name = __expectString(data.Name);
|
|
994
665
|
}
|
|
995
|
-
if (data.OwnerAccountId
|
|
666
|
+
if (data.OwnerAccountId != null) {
|
|
996
667
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
997
668
|
}
|
|
998
|
-
if (data.ProxyType
|
|
669
|
+
if (data.ProxyType != null) {
|
|
999
670
|
contents.ProxyType = __expectString(data.ProxyType);
|
|
1000
671
|
}
|
|
1001
|
-
if (data.State
|
|
672
|
+
if (data.State != null) {
|
|
1002
673
|
contents.State = __expectString(data.State);
|
|
1003
674
|
}
|
|
1004
|
-
if (data.Tags
|
|
675
|
+
if (data.Tags != null) {
|
|
1005
676
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1006
677
|
}
|
|
1007
|
-
if (data.VpcId
|
|
678
|
+
if (data.VpcId != null) {
|
|
1008
679
|
contents.VpcId = __expectString(data.VpcId);
|
|
1009
680
|
}
|
|
1010
|
-
return [2,
|
|
681
|
+
return [2, contents];
|
|
1011
682
|
}
|
|
1012
683
|
});
|
|
1013
684
|
}); };
|
|
1014
685
|
var deserializeAws_restJson1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1015
|
-
var parsedOutput, _a,
|
|
686
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1016
687
|
var _c;
|
|
1017
688
|
return __generator(this, function (_d) {
|
|
1018
689
|
switch (_d.label) {
|
|
@@ -1057,14 +728,14 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
1057
728
|
case 15: throw _d.sent();
|
|
1058
729
|
case 16:
|
|
1059
730
|
parsedBody = parsedOutput.body;
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
$metadata: $metadata,
|
|
731
|
+
throwDefaultError({
|
|
732
|
+
output: output,
|
|
733
|
+
parsedBody: parsedBody,
|
|
734
|
+
exceptionCtor: __BaseException,
|
|
735
|
+
errorCode: errorCode,
|
|
1066
736
|
});
|
|
1067
|
-
|
|
737
|
+
_d.label = 17;
|
|
738
|
+
case 17: return [2];
|
|
1068
739
|
}
|
|
1069
740
|
});
|
|
1070
741
|
}); };
|
|
@@ -1076,60 +747,50 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
|
|
|
1076
747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1077
748
|
return [2, deserializeAws_restJson1CreateEnvironmentCommandError(output, context)];
|
|
1078
749
|
}
|
|
1079
|
-
contents = {
|
|
750
|
+
contents = map({
|
|
1080
751
|
$metadata: deserializeMetadata(output),
|
|
1081
|
-
|
|
1082
|
-
CreatedTime: undefined,
|
|
1083
|
-
Description: undefined,
|
|
1084
|
-
EnvironmentId: undefined,
|
|
1085
|
-
LastUpdatedTime: undefined,
|
|
1086
|
-
Name: undefined,
|
|
1087
|
-
NetworkFabricType: undefined,
|
|
1088
|
-
OwnerAccountId: undefined,
|
|
1089
|
-
State: undefined,
|
|
1090
|
-
Tags: undefined,
|
|
1091
|
-
};
|
|
752
|
+
});
|
|
1092
753
|
_a = __expectNonNull;
|
|
1093
754
|
_b = __expectObject;
|
|
1094
755
|
return [4, parseBody(output.body, context)];
|
|
1095
756
|
case 1:
|
|
1096
757
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1097
|
-
if (data.Arn
|
|
758
|
+
if (data.Arn != null) {
|
|
1098
759
|
contents.Arn = __expectString(data.Arn);
|
|
1099
760
|
}
|
|
1100
|
-
if (data.CreatedTime
|
|
761
|
+
if (data.CreatedTime != null) {
|
|
1101
762
|
contents.CreatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTime)));
|
|
1102
763
|
}
|
|
1103
|
-
if (data.Description
|
|
764
|
+
if (data.Description != null) {
|
|
1104
765
|
contents.Description = __expectString(data.Description);
|
|
1105
766
|
}
|
|
1106
|
-
if (data.EnvironmentId
|
|
767
|
+
if (data.EnvironmentId != null) {
|
|
1107
768
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1108
769
|
}
|
|
1109
|
-
if (data.LastUpdatedTime
|
|
770
|
+
if (data.LastUpdatedTime != null) {
|
|
1110
771
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1111
772
|
}
|
|
1112
|
-
if (data.Name
|
|
773
|
+
if (data.Name != null) {
|
|
1113
774
|
contents.Name = __expectString(data.Name);
|
|
1114
775
|
}
|
|
1115
|
-
if (data.NetworkFabricType
|
|
776
|
+
if (data.NetworkFabricType != null) {
|
|
1116
777
|
contents.NetworkFabricType = __expectString(data.NetworkFabricType);
|
|
1117
778
|
}
|
|
1118
|
-
if (data.OwnerAccountId
|
|
779
|
+
if (data.OwnerAccountId != null) {
|
|
1119
780
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1120
781
|
}
|
|
1121
|
-
if (data.State
|
|
782
|
+
if (data.State != null) {
|
|
1122
783
|
contents.State = __expectString(data.State);
|
|
1123
784
|
}
|
|
1124
|
-
if (data.Tags
|
|
785
|
+
if (data.Tags != null) {
|
|
1125
786
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1126
787
|
}
|
|
1127
|
-
return [2,
|
|
788
|
+
return [2, contents];
|
|
1128
789
|
}
|
|
1129
790
|
});
|
|
1130
791
|
}); };
|
|
1131
792
|
var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1132
|
-
var parsedOutput, _a,
|
|
793
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1133
794
|
var _c;
|
|
1134
795
|
return __generator(this, function (_d) {
|
|
1135
796
|
switch (_d.label) {
|
|
@@ -1174,14 +835,14 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
1174
835
|
case 15: throw _d.sent();
|
|
1175
836
|
case 16:
|
|
1176
837
|
parsedBody = parsedOutput.body;
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
$metadata: $metadata,
|
|
838
|
+
throwDefaultError({
|
|
839
|
+
output: output,
|
|
840
|
+
parsedBody: parsedBody,
|
|
841
|
+
exceptionCtor: __BaseException,
|
|
842
|
+
errorCode: errorCode,
|
|
1183
843
|
});
|
|
1184
|
-
|
|
844
|
+
_d.label = 17;
|
|
845
|
+
case 17: return [2];
|
|
1185
846
|
}
|
|
1186
847
|
});
|
|
1187
848
|
}); };
|
|
@@ -1193,68 +854,56 @@ export var deserializeAws_restJson1CreateRouteCommand = function (output, contex
|
|
|
1193
854
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
855
|
return [2, deserializeAws_restJson1CreateRouteCommandError(output, context)];
|
|
1195
856
|
}
|
|
1196
|
-
contents = {
|
|
857
|
+
contents = map({
|
|
1197
858
|
$metadata: deserializeMetadata(output),
|
|
1198
|
-
|
|
1199
|
-
Arn: undefined,
|
|
1200
|
-
CreatedByAccountId: undefined,
|
|
1201
|
-
CreatedTime: undefined,
|
|
1202
|
-
LastUpdatedTime: undefined,
|
|
1203
|
-
OwnerAccountId: undefined,
|
|
1204
|
-
RouteId: undefined,
|
|
1205
|
-
RouteType: undefined,
|
|
1206
|
-
ServiceId: undefined,
|
|
1207
|
-
State: undefined,
|
|
1208
|
-
Tags: undefined,
|
|
1209
|
-
UriPathRoute: undefined,
|
|
1210
|
-
};
|
|
859
|
+
});
|
|
1211
860
|
_a = __expectNonNull;
|
|
1212
861
|
_b = __expectObject;
|
|
1213
862
|
return [4, parseBody(output.body, context)];
|
|
1214
863
|
case 1:
|
|
1215
864
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1216
|
-
if (data.ApplicationId
|
|
865
|
+
if (data.ApplicationId != null) {
|
|
1217
866
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1218
867
|
}
|
|
1219
|
-
if (data.Arn
|
|
868
|
+
if (data.Arn != null) {
|
|
1220
869
|
contents.Arn = __expectString(data.Arn);
|
|
1221
870
|
}
|
|
1222
|
-
if (data.CreatedByAccountId
|
|
871
|
+
if (data.CreatedByAccountId != null) {
|
|
1223
872
|
contents.CreatedByAccountId = __expectString(data.CreatedByAccountId);
|
|
1224
873
|
}
|
|
1225
|
-
if (data.CreatedTime
|
|
874
|
+
if (data.CreatedTime != null) {
|
|
1226
875
|
contents.CreatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTime)));
|
|
1227
876
|
}
|
|
1228
|
-
if (data.LastUpdatedTime
|
|
877
|
+
if (data.LastUpdatedTime != null) {
|
|
1229
878
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1230
879
|
}
|
|
1231
|
-
if (data.OwnerAccountId
|
|
880
|
+
if (data.OwnerAccountId != null) {
|
|
1232
881
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1233
882
|
}
|
|
1234
|
-
if (data.RouteId
|
|
883
|
+
if (data.RouteId != null) {
|
|
1235
884
|
contents.RouteId = __expectString(data.RouteId);
|
|
1236
885
|
}
|
|
1237
|
-
if (data.RouteType
|
|
886
|
+
if (data.RouteType != null) {
|
|
1238
887
|
contents.RouteType = __expectString(data.RouteType);
|
|
1239
888
|
}
|
|
1240
|
-
if (data.ServiceId
|
|
889
|
+
if (data.ServiceId != null) {
|
|
1241
890
|
contents.ServiceId = __expectString(data.ServiceId);
|
|
1242
891
|
}
|
|
1243
|
-
if (data.State
|
|
892
|
+
if (data.State != null) {
|
|
1244
893
|
contents.State = __expectString(data.State);
|
|
1245
894
|
}
|
|
1246
|
-
if (data.Tags
|
|
895
|
+
if (data.Tags != null) {
|
|
1247
896
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1248
897
|
}
|
|
1249
|
-
if (data.UriPathRoute
|
|
898
|
+
if (data.UriPathRoute != null) {
|
|
1250
899
|
contents.UriPathRoute = deserializeAws_restJson1UriPathRouteInput(data.UriPathRoute, context);
|
|
1251
900
|
}
|
|
1252
|
-
return [2,
|
|
901
|
+
return [2, contents];
|
|
1253
902
|
}
|
|
1254
903
|
});
|
|
1255
904
|
}); };
|
|
1256
905
|
var deserializeAws_restJson1CreateRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1257
|
-
var parsedOutput, _a,
|
|
906
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1258
907
|
var _c;
|
|
1259
908
|
return __generator(this, function (_d) {
|
|
1260
909
|
switch (_d.label) {
|
|
@@ -1299,14 +948,14 @@ var deserializeAws_restJson1CreateRouteCommandError = function (output, context)
|
|
|
1299
948
|
case 15: throw _d.sent();
|
|
1300
949
|
case 16:
|
|
1301
950
|
parsedBody = parsedOutput.body;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
$metadata: $metadata,
|
|
951
|
+
throwDefaultError({
|
|
952
|
+
output: output,
|
|
953
|
+
parsedBody: parsedBody,
|
|
954
|
+
exceptionCtor: __BaseException,
|
|
955
|
+
errorCode: errorCode,
|
|
1308
956
|
});
|
|
1309
|
-
|
|
957
|
+
_d.label = 17;
|
|
958
|
+
case 17: return [2];
|
|
1310
959
|
}
|
|
1311
960
|
});
|
|
1312
961
|
}); };
|
|
@@ -1318,84 +967,68 @@ export var deserializeAws_restJson1CreateServiceCommand = function (output, cont
|
|
|
1318
967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
968
|
return [2, deserializeAws_restJson1CreateServiceCommandError(output, context)];
|
|
1320
969
|
}
|
|
1321
|
-
contents = {
|
|
970
|
+
contents = map({
|
|
1322
971
|
$metadata: deserializeMetadata(output),
|
|
1323
|
-
|
|
1324
|
-
Arn: undefined,
|
|
1325
|
-
CreatedByAccountId: undefined,
|
|
1326
|
-
CreatedTime: undefined,
|
|
1327
|
-
Description: undefined,
|
|
1328
|
-
EndpointType: undefined,
|
|
1329
|
-
EnvironmentId: undefined,
|
|
1330
|
-
LambdaEndpoint: undefined,
|
|
1331
|
-
LastUpdatedTime: undefined,
|
|
1332
|
-
Name: undefined,
|
|
1333
|
-
OwnerAccountId: undefined,
|
|
1334
|
-
ServiceId: undefined,
|
|
1335
|
-
State: undefined,
|
|
1336
|
-
Tags: undefined,
|
|
1337
|
-
UrlEndpoint: undefined,
|
|
1338
|
-
VpcId: undefined,
|
|
1339
|
-
};
|
|
972
|
+
});
|
|
1340
973
|
_a = __expectNonNull;
|
|
1341
974
|
_b = __expectObject;
|
|
1342
975
|
return [4, parseBody(output.body, context)];
|
|
1343
976
|
case 1:
|
|
1344
977
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1345
|
-
if (data.ApplicationId
|
|
978
|
+
if (data.ApplicationId != null) {
|
|
1346
979
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1347
980
|
}
|
|
1348
|
-
if (data.Arn
|
|
981
|
+
if (data.Arn != null) {
|
|
1349
982
|
contents.Arn = __expectString(data.Arn);
|
|
1350
983
|
}
|
|
1351
|
-
if (data.CreatedByAccountId
|
|
984
|
+
if (data.CreatedByAccountId != null) {
|
|
1352
985
|
contents.CreatedByAccountId = __expectString(data.CreatedByAccountId);
|
|
1353
986
|
}
|
|
1354
|
-
if (data.CreatedTime
|
|
987
|
+
if (data.CreatedTime != null) {
|
|
1355
988
|
contents.CreatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTime)));
|
|
1356
989
|
}
|
|
1357
|
-
if (data.Description
|
|
990
|
+
if (data.Description != null) {
|
|
1358
991
|
contents.Description = __expectString(data.Description);
|
|
1359
992
|
}
|
|
1360
|
-
if (data.EndpointType
|
|
993
|
+
if (data.EndpointType != null) {
|
|
1361
994
|
contents.EndpointType = __expectString(data.EndpointType);
|
|
1362
995
|
}
|
|
1363
|
-
if (data.EnvironmentId
|
|
996
|
+
if (data.EnvironmentId != null) {
|
|
1364
997
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1365
998
|
}
|
|
1366
|
-
if (data.LambdaEndpoint
|
|
999
|
+
if (data.LambdaEndpoint != null) {
|
|
1367
1000
|
contents.LambdaEndpoint = deserializeAws_restJson1LambdaEndpointInput(data.LambdaEndpoint, context);
|
|
1368
1001
|
}
|
|
1369
|
-
if (data.LastUpdatedTime
|
|
1002
|
+
if (data.LastUpdatedTime != null) {
|
|
1370
1003
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1371
1004
|
}
|
|
1372
|
-
if (data.Name
|
|
1005
|
+
if (data.Name != null) {
|
|
1373
1006
|
contents.Name = __expectString(data.Name);
|
|
1374
1007
|
}
|
|
1375
|
-
if (data.OwnerAccountId
|
|
1008
|
+
if (data.OwnerAccountId != null) {
|
|
1376
1009
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1377
1010
|
}
|
|
1378
|
-
if (data.ServiceId
|
|
1011
|
+
if (data.ServiceId != null) {
|
|
1379
1012
|
contents.ServiceId = __expectString(data.ServiceId);
|
|
1380
1013
|
}
|
|
1381
|
-
if (data.State
|
|
1014
|
+
if (data.State != null) {
|
|
1382
1015
|
contents.State = __expectString(data.State);
|
|
1383
1016
|
}
|
|
1384
|
-
if (data.Tags
|
|
1017
|
+
if (data.Tags != null) {
|
|
1385
1018
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1386
1019
|
}
|
|
1387
|
-
if (data.UrlEndpoint
|
|
1020
|
+
if (data.UrlEndpoint != null) {
|
|
1388
1021
|
contents.UrlEndpoint = deserializeAws_restJson1UrlEndpointInput(data.UrlEndpoint, context);
|
|
1389
1022
|
}
|
|
1390
|
-
if (data.VpcId
|
|
1023
|
+
if (data.VpcId != null) {
|
|
1391
1024
|
contents.VpcId = __expectString(data.VpcId);
|
|
1392
1025
|
}
|
|
1393
|
-
return [2,
|
|
1026
|
+
return [2, contents];
|
|
1394
1027
|
}
|
|
1395
1028
|
});
|
|
1396
1029
|
}); };
|
|
1397
1030
|
var deserializeAws_restJson1CreateServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1398
|
-
var parsedOutput, _a,
|
|
1031
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1399
1032
|
var _c;
|
|
1400
1033
|
return __generator(this, function (_d) {
|
|
1401
1034
|
switch (_d.label) {
|
|
@@ -1440,14 +1073,14 @@ var deserializeAws_restJson1CreateServiceCommandError = function (output, contex
|
|
|
1440
1073
|
case 15: throw _d.sent();
|
|
1441
1074
|
case 16:
|
|
1442
1075
|
parsedBody = parsedOutput.body;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
$metadata: $metadata,
|
|
1076
|
+
throwDefaultError({
|
|
1077
|
+
output: output,
|
|
1078
|
+
parsedBody: parsedBody,
|
|
1079
|
+
exceptionCtor: __BaseException,
|
|
1080
|
+
errorCode: errorCode,
|
|
1449
1081
|
});
|
|
1450
|
-
|
|
1082
|
+
_d.label = 17;
|
|
1083
|
+
case 17: return [2];
|
|
1451
1084
|
}
|
|
1452
1085
|
});
|
|
1453
1086
|
}); };
|
|
@@ -1459,44 +1092,38 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
|
|
|
1459
1092
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
1093
|
return [2, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
|
|
1461
1094
|
}
|
|
1462
|
-
contents = {
|
|
1095
|
+
contents = map({
|
|
1463
1096
|
$metadata: deserializeMetadata(output),
|
|
1464
|
-
|
|
1465
|
-
Arn: undefined,
|
|
1466
|
-
EnvironmentId: undefined,
|
|
1467
|
-
LastUpdatedTime: undefined,
|
|
1468
|
-
Name: undefined,
|
|
1469
|
-
State: undefined,
|
|
1470
|
-
};
|
|
1097
|
+
});
|
|
1471
1098
|
_a = __expectNonNull;
|
|
1472
1099
|
_b = __expectObject;
|
|
1473
1100
|
return [4, parseBody(output.body, context)];
|
|
1474
1101
|
case 1:
|
|
1475
1102
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1476
|
-
if (data.ApplicationId
|
|
1103
|
+
if (data.ApplicationId != null) {
|
|
1477
1104
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1478
1105
|
}
|
|
1479
|
-
if (data.Arn
|
|
1106
|
+
if (data.Arn != null) {
|
|
1480
1107
|
contents.Arn = __expectString(data.Arn);
|
|
1481
1108
|
}
|
|
1482
|
-
if (data.EnvironmentId
|
|
1109
|
+
if (data.EnvironmentId != null) {
|
|
1483
1110
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1484
1111
|
}
|
|
1485
|
-
if (data.LastUpdatedTime
|
|
1112
|
+
if (data.LastUpdatedTime != null) {
|
|
1486
1113
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1487
1114
|
}
|
|
1488
|
-
if (data.Name
|
|
1115
|
+
if (data.Name != null) {
|
|
1489
1116
|
contents.Name = __expectString(data.Name);
|
|
1490
1117
|
}
|
|
1491
|
-
if (data.State
|
|
1118
|
+
if (data.State != null) {
|
|
1492
1119
|
contents.State = __expectString(data.State);
|
|
1493
1120
|
}
|
|
1494
|
-
return [2,
|
|
1121
|
+
return [2, contents];
|
|
1495
1122
|
}
|
|
1496
1123
|
});
|
|
1497
1124
|
}); };
|
|
1498
1125
|
var deserializeAws_restJson1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1499
|
-
var parsedOutput, _a,
|
|
1126
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1500
1127
|
var _c;
|
|
1501
1128
|
return __generator(this, function (_d) {
|
|
1502
1129
|
switch (_d.label) {
|
|
@@ -1537,14 +1164,14 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
1537
1164
|
case 13: throw _d.sent();
|
|
1538
1165
|
case 14:
|
|
1539
1166
|
parsedBody = parsedOutput.body;
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
$metadata: $metadata,
|
|
1167
|
+
throwDefaultError({
|
|
1168
|
+
output: output,
|
|
1169
|
+
parsedBody: parsedBody,
|
|
1170
|
+
exceptionCtor: __BaseException,
|
|
1171
|
+
errorCode: errorCode,
|
|
1546
1172
|
});
|
|
1547
|
-
|
|
1173
|
+
_d.label = 15;
|
|
1174
|
+
case 15: return [2];
|
|
1548
1175
|
}
|
|
1549
1176
|
});
|
|
1550
1177
|
}); };
|
|
@@ -1556,40 +1183,35 @@ export var deserializeAws_restJson1DeleteEnvironmentCommand = function (output,
|
|
|
1556
1183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
1184
|
return [2, deserializeAws_restJson1DeleteEnvironmentCommandError(output, context)];
|
|
1558
1185
|
}
|
|
1559
|
-
contents = {
|
|
1186
|
+
contents = map({
|
|
1560
1187
|
$metadata: deserializeMetadata(output),
|
|
1561
|
-
|
|
1562
|
-
EnvironmentId: undefined,
|
|
1563
|
-
LastUpdatedTime: undefined,
|
|
1564
|
-
Name: undefined,
|
|
1565
|
-
State: undefined,
|
|
1566
|
-
};
|
|
1188
|
+
});
|
|
1567
1189
|
_a = __expectNonNull;
|
|
1568
1190
|
_b = __expectObject;
|
|
1569
1191
|
return [4, parseBody(output.body, context)];
|
|
1570
1192
|
case 1:
|
|
1571
1193
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1572
|
-
if (data.Arn
|
|
1194
|
+
if (data.Arn != null) {
|
|
1573
1195
|
contents.Arn = __expectString(data.Arn);
|
|
1574
1196
|
}
|
|
1575
|
-
if (data.EnvironmentId
|
|
1197
|
+
if (data.EnvironmentId != null) {
|
|
1576
1198
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1577
1199
|
}
|
|
1578
|
-
if (data.LastUpdatedTime
|
|
1200
|
+
if (data.LastUpdatedTime != null) {
|
|
1579
1201
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1580
1202
|
}
|
|
1581
|
-
if (data.Name
|
|
1203
|
+
if (data.Name != null) {
|
|
1582
1204
|
contents.Name = __expectString(data.Name);
|
|
1583
1205
|
}
|
|
1584
|
-
if (data.State
|
|
1206
|
+
if (data.State != null) {
|
|
1585
1207
|
contents.State = __expectString(data.State);
|
|
1586
1208
|
}
|
|
1587
|
-
return [2,
|
|
1209
|
+
return [2, contents];
|
|
1588
1210
|
}
|
|
1589
1211
|
});
|
|
1590
1212
|
}); };
|
|
1591
1213
|
var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1592
|
-
var parsedOutput, _a,
|
|
1214
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1593
1215
|
var _c;
|
|
1594
1216
|
return __generator(this, function (_d) {
|
|
1595
1217
|
switch (_d.label) {
|
|
@@ -1630,14 +1252,14 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
1630
1252
|
case 13: throw _d.sent();
|
|
1631
1253
|
case 14:
|
|
1632
1254
|
parsedBody = parsedOutput.body;
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
$metadata: $metadata,
|
|
1255
|
+
throwDefaultError({
|
|
1256
|
+
output: output,
|
|
1257
|
+
parsedBody: parsedBody,
|
|
1258
|
+
exceptionCtor: __BaseException,
|
|
1259
|
+
errorCode: errorCode,
|
|
1639
1260
|
});
|
|
1640
|
-
|
|
1261
|
+
_d.label = 15;
|
|
1262
|
+
case 15: return [2];
|
|
1641
1263
|
}
|
|
1642
1264
|
});
|
|
1643
1265
|
}); };
|
|
@@ -1649,18 +1271,18 @@ export var deserializeAws_restJson1DeleteResourcePolicyCommand = function (outpu
|
|
|
1649
1271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1650
1272
|
return [2, deserializeAws_restJson1DeleteResourcePolicyCommandError(output, context)];
|
|
1651
1273
|
}
|
|
1652
|
-
contents = {
|
|
1274
|
+
contents = map({
|
|
1653
1275
|
$metadata: deserializeMetadata(output),
|
|
1654
|
-
};
|
|
1276
|
+
});
|
|
1655
1277
|
return [4, collectBody(output.body, context)];
|
|
1656
1278
|
case 1:
|
|
1657
1279
|
_a.sent();
|
|
1658
|
-
return [2,
|
|
1280
|
+
return [2, contents];
|
|
1659
1281
|
}
|
|
1660
1282
|
});
|
|
1661
1283
|
}); };
|
|
1662
1284
|
var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1663
|
-
var parsedOutput, _a,
|
|
1285
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1664
1286
|
var _c;
|
|
1665
1287
|
return __generator(this, function (_d) {
|
|
1666
1288
|
switch (_d.label) {
|
|
@@ -1697,14 +1319,14 @@ var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output,
|
|
|
1697
1319
|
case 11: throw _d.sent();
|
|
1698
1320
|
case 12:
|
|
1699
1321
|
parsedBody = parsedOutput.body;
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
$metadata: $metadata,
|
|
1322
|
+
throwDefaultError({
|
|
1323
|
+
output: output,
|
|
1324
|
+
parsedBody: parsedBody,
|
|
1325
|
+
exceptionCtor: __BaseException,
|
|
1326
|
+
errorCode: errorCode,
|
|
1706
1327
|
});
|
|
1707
|
-
|
|
1328
|
+
_d.label = 13;
|
|
1329
|
+
case 13: return [2];
|
|
1708
1330
|
}
|
|
1709
1331
|
});
|
|
1710
1332
|
}); };
|
|
@@ -1716,44 +1338,38 @@ export var deserializeAws_restJson1DeleteRouteCommand = function (output, contex
|
|
|
1716
1338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1717
1339
|
return [2, deserializeAws_restJson1DeleteRouteCommandError(output, context)];
|
|
1718
1340
|
}
|
|
1719
|
-
contents = {
|
|
1341
|
+
contents = map({
|
|
1720
1342
|
$metadata: deserializeMetadata(output),
|
|
1721
|
-
|
|
1722
|
-
Arn: undefined,
|
|
1723
|
-
LastUpdatedTime: undefined,
|
|
1724
|
-
RouteId: undefined,
|
|
1725
|
-
ServiceId: undefined,
|
|
1726
|
-
State: undefined,
|
|
1727
|
-
};
|
|
1343
|
+
});
|
|
1728
1344
|
_a = __expectNonNull;
|
|
1729
1345
|
_b = __expectObject;
|
|
1730
1346
|
return [4, parseBody(output.body, context)];
|
|
1731
1347
|
case 1:
|
|
1732
1348
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1733
|
-
if (data.ApplicationId
|
|
1349
|
+
if (data.ApplicationId != null) {
|
|
1734
1350
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1735
1351
|
}
|
|
1736
|
-
if (data.Arn
|
|
1352
|
+
if (data.Arn != null) {
|
|
1737
1353
|
contents.Arn = __expectString(data.Arn);
|
|
1738
1354
|
}
|
|
1739
|
-
if (data.LastUpdatedTime
|
|
1355
|
+
if (data.LastUpdatedTime != null) {
|
|
1740
1356
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1741
1357
|
}
|
|
1742
|
-
if (data.RouteId
|
|
1358
|
+
if (data.RouteId != null) {
|
|
1743
1359
|
contents.RouteId = __expectString(data.RouteId);
|
|
1744
1360
|
}
|
|
1745
|
-
if (data.ServiceId
|
|
1361
|
+
if (data.ServiceId != null) {
|
|
1746
1362
|
contents.ServiceId = __expectString(data.ServiceId);
|
|
1747
1363
|
}
|
|
1748
|
-
if (data.State
|
|
1364
|
+
if (data.State != null) {
|
|
1749
1365
|
contents.State = __expectString(data.State);
|
|
1750
1366
|
}
|
|
1751
|
-
return [2,
|
|
1367
|
+
return [2, contents];
|
|
1752
1368
|
}
|
|
1753
1369
|
});
|
|
1754
1370
|
}); };
|
|
1755
1371
|
var deserializeAws_restJson1DeleteRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1756
|
-
var parsedOutput, _a,
|
|
1372
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1757
1373
|
var _c;
|
|
1758
1374
|
return __generator(this, function (_d) {
|
|
1759
1375
|
switch (_d.label) {
|
|
@@ -1794,14 +1410,14 @@ var deserializeAws_restJson1DeleteRouteCommandError = function (output, context)
|
|
|
1794
1410
|
case 13: throw _d.sent();
|
|
1795
1411
|
case 14:
|
|
1796
1412
|
parsedBody = parsedOutput.body;
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
$metadata: $metadata,
|
|
1413
|
+
throwDefaultError({
|
|
1414
|
+
output: output,
|
|
1415
|
+
parsedBody: parsedBody,
|
|
1416
|
+
exceptionCtor: __BaseException,
|
|
1417
|
+
errorCode: errorCode,
|
|
1803
1418
|
});
|
|
1804
|
-
|
|
1419
|
+
_d.label = 15;
|
|
1420
|
+
case 15: return [2];
|
|
1805
1421
|
}
|
|
1806
1422
|
});
|
|
1807
1423
|
}); };
|
|
@@ -1813,48 +1429,41 @@ export var deserializeAws_restJson1DeleteServiceCommand = function (output, cont
|
|
|
1813
1429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1814
1430
|
return [2, deserializeAws_restJson1DeleteServiceCommandError(output, context)];
|
|
1815
1431
|
}
|
|
1816
|
-
contents = {
|
|
1432
|
+
contents = map({
|
|
1817
1433
|
$metadata: deserializeMetadata(output),
|
|
1818
|
-
|
|
1819
|
-
Arn: undefined,
|
|
1820
|
-
EnvironmentId: undefined,
|
|
1821
|
-
LastUpdatedTime: undefined,
|
|
1822
|
-
Name: undefined,
|
|
1823
|
-
ServiceId: undefined,
|
|
1824
|
-
State: undefined,
|
|
1825
|
-
};
|
|
1434
|
+
});
|
|
1826
1435
|
_a = __expectNonNull;
|
|
1827
1436
|
_b = __expectObject;
|
|
1828
1437
|
return [4, parseBody(output.body, context)];
|
|
1829
1438
|
case 1:
|
|
1830
1439
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1831
|
-
if (data.ApplicationId
|
|
1440
|
+
if (data.ApplicationId != null) {
|
|
1832
1441
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1833
1442
|
}
|
|
1834
|
-
if (data.Arn
|
|
1443
|
+
if (data.Arn != null) {
|
|
1835
1444
|
contents.Arn = __expectString(data.Arn);
|
|
1836
1445
|
}
|
|
1837
|
-
if (data.EnvironmentId
|
|
1446
|
+
if (data.EnvironmentId != null) {
|
|
1838
1447
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1839
1448
|
}
|
|
1840
|
-
if (data.LastUpdatedTime
|
|
1449
|
+
if (data.LastUpdatedTime != null) {
|
|
1841
1450
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1842
1451
|
}
|
|
1843
|
-
if (data.Name
|
|
1452
|
+
if (data.Name != null) {
|
|
1844
1453
|
contents.Name = __expectString(data.Name);
|
|
1845
1454
|
}
|
|
1846
|
-
if (data.ServiceId
|
|
1455
|
+
if (data.ServiceId != null) {
|
|
1847
1456
|
contents.ServiceId = __expectString(data.ServiceId);
|
|
1848
1457
|
}
|
|
1849
|
-
if (data.State
|
|
1458
|
+
if (data.State != null) {
|
|
1850
1459
|
contents.State = __expectString(data.State);
|
|
1851
1460
|
}
|
|
1852
|
-
return [2,
|
|
1461
|
+
return [2, contents];
|
|
1853
1462
|
}
|
|
1854
1463
|
});
|
|
1855
1464
|
}); };
|
|
1856
1465
|
var deserializeAws_restJson1DeleteServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1857
|
-
var parsedOutput, _a,
|
|
1466
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1858
1467
|
var _c;
|
|
1859
1468
|
return __generator(this, function (_d) {
|
|
1860
1469
|
switch (_d.label) {
|
|
@@ -1895,14 +1504,14 @@ var deserializeAws_restJson1DeleteServiceCommandError = function (output, contex
|
|
|
1895
1504
|
case 13: throw _d.sent();
|
|
1896
1505
|
case 14:
|
|
1897
1506
|
parsedBody = parsedOutput.body;
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
$metadata: $metadata,
|
|
1507
|
+
throwDefaultError({
|
|
1508
|
+
output: output,
|
|
1509
|
+
parsedBody: parsedBody,
|
|
1510
|
+
exceptionCtor: __BaseException,
|
|
1511
|
+
errorCode: errorCode,
|
|
1904
1512
|
});
|
|
1905
|
-
|
|
1513
|
+
_d.label = 15;
|
|
1514
|
+
case 15: return [2];
|
|
1906
1515
|
}
|
|
1907
1516
|
});
|
|
1908
1517
|
}); };
|
|
@@ -1914,76 +1523,62 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
|
|
|
1914
1523
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1915
1524
|
return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
|
|
1916
1525
|
}
|
|
1917
|
-
contents = {
|
|
1526
|
+
contents = map({
|
|
1918
1527
|
$metadata: deserializeMetadata(output),
|
|
1919
|
-
|
|
1920
|
-
ApplicationId: undefined,
|
|
1921
|
-
Arn: undefined,
|
|
1922
|
-
CreatedByAccountId: undefined,
|
|
1923
|
-
CreatedTime: undefined,
|
|
1924
|
-
EnvironmentId: undefined,
|
|
1925
|
-
Error: undefined,
|
|
1926
|
-
LastUpdatedTime: undefined,
|
|
1927
|
-
Name: undefined,
|
|
1928
|
-
OwnerAccountId: undefined,
|
|
1929
|
-
ProxyType: undefined,
|
|
1930
|
-
State: undefined,
|
|
1931
|
-
Tags: undefined,
|
|
1932
|
-
VpcId: undefined,
|
|
1933
|
-
};
|
|
1528
|
+
});
|
|
1934
1529
|
_a = __expectNonNull;
|
|
1935
1530
|
_b = __expectObject;
|
|
1936
1531
|
return [4, parseBody(output.body, context)];
|
|
1937
1532
|
case 1:
|
|
1938
1533
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1939
|
-
if (data.ApiGatewayProxy
|
|
1534
|
+
if (data.ApiGatewayProxy != null) {
|
|
1940
1535
|
contents.ApiGatewayProxy = deserializeAws_restJson1ApiGatewayProxyConfig(data.ApiGatewayProxy, context);
|
|
1941
1536
|
}
|
|
1942
|
-
if (data.ApplicationId
|
|
1537
|
+
if (data.ApplicationId != null) {
|
|
1943
1538
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1944
1539
|
}
|
|
1945
|
-
if (data.Arn
|
|
1540
|
+
if (data.Arn != null) {
|
|
1946
1541
|
contents.Arn = __expectString(data.Arn);
|
|
1947
1542
|
}
|
|
1948
|
-
if (data.CreatedByAccountId
|
|
1543
|
+
if (data.CreatedByAccountId != null) {
|
|
1949
1544
|
contents.CreatedByAccountId = __expectString(data.CreatedByAccountId);
|
|
1950
1545
|
}
|
|
1951
|
-
if (data.CreatedTime
|
|
1546
|
+
if (data.CreatedTime != null) {
|
|
1952
1547
|
contents.CreatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTime)));
|
|
1953
1548
|
}
|
|
1954
|
-
if (data.EnvironmentId
|
|
1549
|
+
if (data.EnvironmentId != null) {
|
|
1955
1550
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1956
1551
|
}
|
|
1957
|
-
if (data.Error
|
|
1552
|
+
if (data.Error != null) {
|
|
1958
1553
|
contents.Error = deserializeAws_restJson1ErrorResponse(data.Error, context);
|
|
1959
1554
|
}
|
|
1960
|
-
if (data.LastUpdatedTime
|
|
1555
|
+
if (data.LastUpdatedTime != null) {
|
|
1961
1556
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1962
1557
|
}
|
|
1963
|
-
if (data.Name
|
|
1558
|
+
if (data.Name != null) {
|
|
1964
1559
|
contents.Name = __expectString(data.Name);
|
|
1965
1560
|
}
|
|
1966
|
-
if (data.OwnerAccountId
|
|
1561
|
+
if (data.OwnerAccountId != null) {
|
|
1967
1562
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1968
1563
|
}
|
|
1969
|
-
if (data.ProxyType
|
|
1564
|
+
if (data.ProxyType != null) {
|
|
1970
1565
|
contents.ProxyType = __expectString(data.ProxyType);
|
|
1971
1566
|
}
|
|
1972
|
-
if (data.State
|
|
1567
|
+
if (data.State != null) {
|
|
1973
1568
|
contents.State = __expectString(data.State);
|
|
1974
1569
|
}
|
|
1975
|
-
if (data.Tags
|
|
1570
|
+
if (data.Tags != null) {
|
|
1976
1571
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1977
1572
|
}
|
|
1978
|
-
if (data.VpcId
|
|
1573
|
+
if (data.VpcId != null) {
|
|
1979
1574
|
contents.VpcId = __expectString(data.VpcId);
|
|
1980
1575
|
}
|
|
1981
|
-
return [2,
|
|
1576
|
+
return [2, contents];
|
|
1982
1577
|
}
|
|
1983
1578
|
});
|
|
1984
1579
|
}); };
|
|
1985
1580
|
var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1986
|
-
var parsedOutput, _a,
|
|
1581
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1987
1582
|
var _c;
|
|
1988
1583
|
return __generator(this, function (_d) {
|
|
1989
1584
|
switch (_d.label) {
|
|
@@ -2020,14 +1615,14 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
2020
1615
|
case 11: throw _d.sent();
|
|
2021
1616
|
case 12:
|
|
2022
1617
|
parsedBody = parsedOutput.body;
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
$metadata: $metadata,
|
|
1618
|
+
throwDefaultError({
|
|
1619
|
+
output: output,
|
|
1620
|
+
parsedBody: parsedBody,
|
|
1621
|
+
exceptionCtor: __BaseException,
|
|
1622
|
+
errorCode: errorCode,
|
|
2029
1623
|
});
|
|
2030
|
-
|
|
1624
|
+
_d.label = 13;
|
|
1625
|
+
case 13: return [2];
|
|
2031
1626
|
}
|
|
2032
1627
|
});
|
|
2033
1628
|
}); };
|
|
@@ -2039,68 +1634,56 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
|
|
|
2039
1634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2040
1635
|
return [2, deserializeAws_restJson1GetEnvironmentCommandError(output, context)];
|
|
2041
1636
|
}
|
|
2042
|
-
contents = {
|
|
1637
|
+
contents = map({
|
|
2043
1638
|
$metadata: deserializeMetadata(output),
|
|
2044
|
-
|
|
2045
|
-
CreatedTime: undefined,
|
|
2046
|
-
Description: undefined,
|
|
2047
|
-
EnvironmentId: undefined,
|
|
2048
|
-
Error: undefined,
|
|
2049
|
-
LastUpdatedTime: undefined,
|
|
2050
|
-
Name: undefined,
|
|
2051
|
-
NetworkFabricType: undefined,
|
|
2052
|
-
OwnerAccountId: undefined,
|
|
2053
|
-
State: undefined,
|
|
2054
|
-
Tags: undefined,
|
|
2055
|
-
TransitGatewayId: undefined,
|
|
2056
|
-
};
|
|
1639
|
+
});
|
|
2057
1640
|
_a = __expectNonNull;
|
|
2058
1641
|
_b = __expectObject;
|
|
2059
1642
|
return [4, parseBody(output.body, context)];
|
|
2060
1643
|
case 1:
|
|
2061
1644
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2062
|
-
if (data.Arn
|
|
1645
|
+
if (data.Arn != null) {
|
|
2063
1646
|
contents.Arn = __expectString(data.Arn);
|
|
2064
1647
|
}
|
|
2065
|
-
if (data.CreatedTime
|
|
1648
|
+
if (data.CreatedTime != null) {
|
|
2066
1649
|
contents.CreatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTime)));
|
|
2067
1650
|
}
|
|
2068
|
-
if (data.Description
|
|
1651
|
+
if (data.Description != null) {
|
|
2069
1652
|
contents.Description = __expectString(data.Description);
|
|
2070
1653
|
}
|
|
2071
|
-
if (data.EnvironmentId
|
|
1654
|
+
if (data.EnvironmentId != null) {
|
|
2072
1655
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
2073
1656
|
}
|
|
2074
|
-
if (data.Error
|
|
1657
|
+
if (data.Error != null) {
|
|
2075
1658
|
contents.Error = deserializeAws_restJson1ErrorResponse(data.Error, context);
|
|
2076
1659
|
}
|
|
2077
|
-
if (data.LastUpdatedTime
|
|
1660
|
+
if (data.LastUpdatedTime != null) {
|
|
2078
1661
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
2079
1662
|
}
|
|
2080
|
-
if (data.Name
|
|
1663
|
+
if (data.Name != null) {
|
|
2081
1664
|
contents.Name = __expectString(data.Name);
|
|
2082
1665
|
}
|
|
2083
|
-
if (data.NetworkFabricType
|
|
1666
|
+
if (data.NetworkFabricType != null) {
|
|
2084
1667
|
contents.NetworkFabricType = __expectString(data.NetworkFabricType);
|
|
2085
1668
|
}
|
|
2086
|
-
if (data.OwnerAccountId
|
|
1669
|
+
if (data.OwnerAccountId != null) {
|
|
2087
1670
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
2088
1671
|
}
|
|
2089
|
-
if (data.State
|
|
1672
|
+
if (data.State != null) {
|
|
2090
1673
|
contents.State = __expectString(data.State);
|
|
2091
1674
|
}
|
|
2092
|
-
if (data.Tags
|
|
1675
|
+
if (data.Tags != null) {
|
|
2093
1676
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2094
1677
|
}
|
|
2095
|
-
if (data.TransitGatewayId
|
|
1678
|
+
if (data.TransitGatewayId != null) {
|
|
2096
1679
|
contents.TransitGatewayId = __expectString(data.TransitGatewayId);
|
|
2097
1680
|
}
|
|
2098
|
-
return [2,
|
|
1681
|
+
return [2, contents];
|
|
2099
1682
|
}
|
|
2100
1683
|
});
|
|
2101
1684
|
}); };
|
|
2102
1685
|
var deserializeAws_restJson1GetEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2103
|
-
var parsedOutput, _a,
|
|
1686
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2104
1687
|
var _c;
|
|
2105
1688
|
return __generator(this, function (_d) {
|
|
2106
1689
|
switch (_d.label) {
|
|
@@ -2137,14 +1720,14 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
2137
1720
|
case 11: throw _d.sent();
|
|
2138
1721
|
case 12:
|
|
2139
1722
|
parsedBody = parsedOutput.body;
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
$metadata: $metadata,
|
|
1723
|
+
throwDefaultError({
|
|
1724
|
+
output: output,
|
|
1725
|
+
parsedBody: parsedBody,
|
|
1726
|
+
exceptionCtor: __BaseException,
|
|
1727
|
+
errorCode: errorCode,
|
|
2146
1728
|
});
|
|
2147
|
-
|
|
1729
|
+
_d.label = 13;
|
|
1730
|
+
case 13: return [2];
|
|
2148
1731
|
}
|
|
2149
1732
|
});
|
|
2150
1733
|
}); };
|
|
@@ -2156,24 +1739,23 @@ export var deserializeAws_restJson1GetResourcePolicyCommand = function (output,
|
|
|
2156
1739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2157
1740
|
return [2, deserializeAws_restJson1GetResourcePolicyCommandError(output, context)];
|
|
2158
1741
|
}
|
|
2159
|
-
contents = {
|
|
1742
|
+
contents = map({
|
|
2160
1743
|
$metadata: deserializeMetadata(output),
|
|
2161
|
-
|
|
2162
|
-
};
|
|
1744
|
+
});
|
|
2163
1745
|
_a = __expectNonNull;
|
|
2164
1746
|
_b = __expectObject;
|
|
2165
1747
|
return [4, parseBody(output.body, context)];
|
|
2166
1748
|
case 1:
|
|
2167
1749
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2168
|
-
if (data.Policy
|
|
1750
|
+
if (data.Policy != null) {
|
|
2169
1751
|
contents.Policy = __expectString(data.Policy);
|
|
2170
1752
|
}
|
|
2171
|
-
return [2,
|
|
1753
|
+
return [2, contents];
|
|
2172
1754
|
}
|
|
2173
1755
|
});
|
|
2174
1756
|
}); };
|
|
2175
1757
|
var deserializeAws_restJson1GetResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2176
|
-
var parsedOutput, _a,
|
|
1758
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2177
1759
|
var _c;
|
|
2178
1760
|
return __generator(this, function (_d) {
|
|
2179
1761
|
switch (_d.label) {
|
|
@@ -2210,14 +1792,14 @@ var deserializeAws_restJson1GetResourcePolicyCommandError = function (output, co
|
|
|
2210
1792
|
case 11: throw _d.sent();
|
|
2211
1793
|
case 12:
|
|
2212
1794
|
parsedBody = parsedOutput.body;
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
$metadata: $metadata,
|
|
1795
|
+
throwDefaultError({
|
|
1796
|
+
output: output,
|
|
1797
|
+
parsedBody: parsedBody,
|
|
1798
|
+
exceptionCtor: __BaseException,
|
|
1799
|
+
errorCode: errorCode,
|
|
2219
1800
|
});
|
|
2220
|
-
|
|
1801
|
+
_d.label = 13;
|
|
1802
|
+
case 13: return [2];
|
|
2221
1803
|
}
|
|
2222
1804
|
});
|
|
2223
1805
|
}); };
|
|
@@ -2229,88 +1811,71 @@ export var deserializeAws_restJson1GetRouteCommand = function (output, context)
|
|
|
2229
1811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2230
1812
|
return [2, deserializeAws_restJson1GetRouteCommandError(output, context)];
|
|
2231
1813
|
}
|
|
2232
|
-
contents = {
|
|
1814
|
+
contents = map({
|
|
2233
1815
|
$metadata: deserializeMetadata(output),
|
|
2234
|
-
|
|
2235
|
-
Arn: undefined,
|
|
2236
|
-
CreatedByAccountId: undefined,
|
|
2237
|
-
CreatedTime: undefined,
|
|
2238
|
-
EnvironmentId: undefined,
|
|
2239
|
-
Error: undefined,
|
|
2240
|
-
IncludeChildPaths: undefined,
|
|
2241
|
-
LastUpdatedTime: undefined,
|
|
2242
|
-
Methods: undefined,
|
|
2243
|
-
OwnerAccountId: undefined,
|
|
2244
|
-
PathResourceToId: undefined,
|
|
2245
|
-
RouteId: undefined,
|
|
2246
|
-
RouteType: undefined,
|
|
2247
|
-
ServiceId: undefined,
|
|
2248
|
-
SourcePath: undefined,
|
|
2249
|
-
State: undefined,
|
|
2250
|
-
Tags: undefined,
|
|
2251
|
-
};
|
|
1816
|
+
});
|
|
2252
1817
|
_a = __expectNonNull;
|
|
2253
1818
|
_b = __expectObject;
|
|
2254
1819
|
return [4, parseBody(output.body, context)];
|
|
2255
1820
|
case 1:
|
|
2256
1821
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2257
|
-
if (data.ApplicationId
|
|
1822
|
+
if (data.ApplicationId != null) {
|
|
2258
1823
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2259
1824
|
}
|
|
2260
|
-
if (data.Arn
|
|
1825
|
+
if (data.Arn != null) {
|
|
2261
1826
|
contents.Arn = __expectString(data.Arn);
|
|
2262
1827
|
}
|
|
2263
|
-
if (data.CreatedByAccountId
|
|
1828
|
+
if (data.CreatedByAccountId != null) {
|
|
2264
1829
|
contents.CreatedByAccountId = __expectString(data.CreatedByAccountId);
|
|
2265
1830
|
}
|
|
2266
|
-
if (data.CreatedTime
|
|
1831
|
+
if (data.CreatedTime != null) {
|
|
2267
1832
|
contents.CreatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTime)));
|
|
2268
1833
|
}
|
|
2269
|
-
if (data.EnvironmentId
|
|
1834
|
+
if (data.EnvironmentId != null) {
|
|
2270
1835
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
2271
1836
|
}
|
|
2272
|
-
if (data.Error
|
|
1837
|
+
if (data.Error != null) {
|
|
2273
1838
|
contents.Error = deserializeAws_restJson1ErrorResponse(data.Error, context);
|
|
2274
1839
|
}
|
|
2275
|
-
if (data.IncludeChildPaths
|
|
1840
|
+
if (data.IncludeChildPaths != null) {
|
|
2276
1841
|
contents.IncludeChildPaths = __expectBoolean(data.IncludeChildPaths);
|
|
2277
1842
|
}
|
|
2278
|
-
if (data.LastUpdatedTime
|
|
1843
|
+
if (data.LastUpdatedTime != null) {
|
|
2279
1844
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
2280
1845
|
}
|
|
2281
|
-
if (data.Methods
|
|
1846
|
+
if (data.Methods != null) {
|
|
2282
1847
|
contents.Methods = deserializeAws_restJson1HttpMethods(data.Methods, context);
|
|
2283
1848
|
}
|
|
2284
|
-
if (data.OwnerAccountId
|
|
1849
|
+
if (data.OwnerAccountId != null) {
|
|
2285
1850
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
2286
1851
|
}
|
|
2287
|
-
if (data.PathResourceToId
|
|
1852
|
+
if (data.PathResourceToId != null) {
|
|
2288
1853
|
contents.PathResourceToId = deserializeAws_restJson1PathResourceToId(data.PathResourceToId, context);
|
|
2289
1854
|
}
|
|
2290
|
-
if (data.RouteId
|
|
1855
|
+
if (data.RouteId != null) {
|
|
2291
1856
|
contents.RouteId = __expectString(data.RouteId);
|
|
2292
1857
|
}
|
|
2293
|
-
if (data.RouteType
|
|
1858
|
+
if (data.RouteType != null) {
|
|
2294
1859
|
contents.RouteType = __expectString(data.RouteType);
|
|
2295
1860
|
}
|
|
2296
|
-
if (data.ServiceId
|
|
1861
|
+
if (data.ServiceId != null) {
|
|
2297
1862
|
contents.ServiceId = __expectString(data.ServiceId);
|
|
2298
1863
|
}
|
|
2299
|
-
if (data.SourcePath
|
|
1864
|
+
if (data.SourcePath != null) {
|
|
2300
1865
|
contents.SourcePath = __expectString(data.SourcePath);
|
|
2301
1866
|
}
|
|
2302
|
-
if (data.State
|
|
1867
|
+
if (data.State != null) {
|
|
2303
1868
|
contents.State = __expectString(data.State);
|
|
2304
1869
|
}
|
|
2305
|
-
if (data.Tags
|
|
1870
|
+
if (data.Tags != null) {
|
|
2306
1871
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2307
1872
|
}
|
|
2308
|
-
return [2,
|
|
1873
|
+
return [2, contents];
|
|
2309
1874
|
}
|
|
2310
1875
|
});
|
|
2311
1876
|
}); };
|
|
2312
1877
|
var deserializeAws_restJson1GetRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2313
|
-
var parsedOutput, _a,
|
|
1878
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2314
1879
|
var _c;
|
|
2315
1880
|
return __generator(this, function (_d) {
|
|
2316
1881
|
switch (_d.label) {
|
|
@@ -2347,14 +1912,14 @@ var deserializeAws_restJson1GetRouteCommandError = function (output, context) {
|
|
|
2347
1912
|
case 11: throw _d.sent();
|
|
2348
1913
|
case 12:
|
|
2349
1914
|
parsedBody = parsedOutput.body;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
$metadata: $metadata,
|
|
1915
|
+
throwDefaultError({
|
|
1916
|
+
output: output,
|
|
1917
|
+
parsedBody: parsedBody,
|
|
1918
|
+
exceptionCtor: __BaseException,
|
|
1919
|
+
errorCode: errorCode,
|
|
2356
1920
|
});
|
|
2357
|
-
|
|
1921
|
+
_d.label = 13;
|
|
1922
|
+
case 13: return [2];
|
|
2358
1923
|
}
|
|
2359
1924
|
});
|
|
2360
1925
|
}); };
|
|
@@ -2366,88 +1931,71 @@ export var deserializeAws_restJson1GetServiceCommand = function (output, context
|
|
|
2366
1931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2367
1932
|
return [2, deserializeAws_restJson1GetServiceCommandError(output, context)];
|
|
2368
1933
|
}
|
|
2369
|
-
contents = {
|
|
1934
|
+
contents = map({
|
|
2370
1935
|
$metadata: deserializeMetadata(output),
|
|
2371
|
-
|
|
2372
|
-
Arn: undefined,
|
|
2373
|
-
CreatedByAccountId: undefined,
|
|
2374
|
-
CreatedTime: undefined,
|
|
2375
|
-
Description: undefined,
|
|
2376
|
-
EndpointType: undefined,
|
|
2377
|
-
EnvironmentId: undefined,
|
|
2378
|
-
Error: undefined,
|
|
2379
|
-
LambdaEndpoint: undefined,
|
|
2380
|
-
LastUpdatedTime: undefined,
|
|
2381
|
-
Name: undefined,
|
|
2382
|
-
OwnerAccountId: undefined,
|
|
2383
|
-
ServiceId: undefined,
|
|
2384
|
-
State: undefined,
|
|
2385
|
-
Tags: undefined,
|
|
2386
|
-
UrlEndpoint: undefined,
|
|
2387
|
-
VpcId: undefined,
|
|
2388
|
-
};
|
|
1936
|
+
});
|
|
2389
1937
|
_a = __expectNonNull;
|
|
2390
1938
|
_b = __expectObject;
|
|
2391
1939
|
return [4, parseBody(output.body, context)];
|
|
2392
1940
|
case 1:
|
|
2393
1941
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2394
|
-
if (data.ApplicationId
|
|
1942
|
+
if (data.ApplicationId != null) {
|
|
2395
1943
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2396
1944
|
}
|
|
2397
|
-
if (data.Arn
|
|
1945
|
+
if (data.Arn != null) {
|
|
2398
1946
|
contents.Arn = __expectString(data.Arn);
|
|
2399
1947
|
}
|
|
2400
|
-
if (data.CreatedByAccountId
|
|
1948
|
+
if (data.CreatedByAccountId != null) {
|
|
2401
1949
|
contents.CreatedByAccountId = __expectString(data.CreatedByAccountId);
|
|
2402
1950
|
}
|
|
2403
|
-
if (data.CreatedTime
|
|
1951
|
+
if (data.CreatedTime != null) {
|
|
2404
1952
|
contents.CreatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTime)));
|
|
2405
1953
|
}
|
|
2406
|
-
if (data.Description
|
|
1954
|
+
if (data.Description != null) {
|
|
2407
1955
|
contents.Description = __expectString(data.Description);
|
|
2408
1956
|
}
|
|
2409
|
-
if (data.EndpointType
|
|
1957
|
+
if (data.EndpointType != null) {
|
|
2410
1958
|
contents.EndpointType = __expectString(data.EndpointType);
|
|
2411
1959
|
}
|
|
2412
|
-
if (data.EnvironmentId
|
|
1960
|
+
if (data.EnvironmentId != null) {
|
|
2413
1961
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
2414
1962
|
}
|
|
2415
|
-
if (data.Error
|
|
1963
|
+
if (data.Error != null) {
|
|
2416
1964
|
contents.Error = deserializeAws_restJson1ErrorResponse(data.Error, context);
|
|
2417
1965
|
}
|
|
2418
|
-
if (data.LambdaEndpoint
|
|
1966
|
+
if (data.LambdaEndpoint != null) {
|
|
2419
1967
|
contents.LambdaEndpoint = deserializeAws_restJson1LambdaEndpointConfig(data.LambdaEndpoint, context);
|
|
2420
1968
|
}
|
|
2421
|
-
if (data.LastUpdatedTime
|
|
1969
|
+
if (data.LastUpdatedTime != null) {
|
|
2422
1970
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
2423
1971
|
}
|
|
2424
|
-
if (data.Name
|
|
1972
|
+
if (data.Name != null) {
|
|
2425
1973
|
contents.Name = __expectString(data.Name);
|
|
2426
1974
|
}
|
|
2427
|
-
if (data.OwnerAccountId
|
|
1975
|
+
if (data.OwnerAccountId != null) {
|
|
2428
1976
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
2429
1977
|
}
|
|
2430
|
-
if (data.ServiceId
|
|
1978
|
+
if (data.ServiceId != null) {
|
|
2431
1979
|
contents.ServiceId = __expectString(data.ServiceId);
|
|
2432
1980
|
}
|
|
2433
|
-
if (data.State
|
|
1981
|
+
if (data.State != null) {
|
|
2434
1982
|
contents.State = __expectString(data.State);
|
|
2435
1983
|
}
|
|
2436
|
-
if (data.Tags
|
|
1984
|
+
if (data.Tags != null) {
|
|
2437
1985
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2438
1986
|
}
|
|
2439
|
-
if (data.UrlEndpoint
|
|
1987
|
+
if (data.UrlEndpoint != null) {
|
|
2440
1988
|
contents.UrlEndpoint = deserializeAws_restJson1UrlEndpointConfig(data.UrlEndpoint, context);
|
|
2441
1989
|
}
|
|
2442
|
-
if (data.VpcId
|
|
1990
|
+
if (data.VpcId != null) {
|
|
2443
1991
|
contents.VpcId = __expectString(data.VpcId);
|
|
2444
1992
|
}
|
|
2445
|
-
return [2,
|
|
1993
|
+
return [2, contents];
|
|
2446
1994
|
}
|
|
2447
1995
|
});
|
|
2448
1996
|
}); };
|
|
2449
1997
|
var deserializeAws_restJson1GetServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2450
|
-
var parsedOutput, _a,
|
|
1998
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2451
1999
|
var _c;
|
|
2452
2000
|
return __generator(this, function (_d) {
|
|
2453
2001
|
switch (_d.label) {
|
|
@@ -2484,14 +2032,14 @@ var deserializeAws_restJson1GetServiceCommandError = function (output, context)
|
|
|
2484
2032
|
case 11: throw _d.sent();
|
|
2485
2033
|
case 12:
|
|
2486
2034
|
parsedBody = parsedOutput.body;
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
$metadata: $metadata,
|
|
2035
|
+
throwDefaultError({
|
|
2036
|
+
output: output,
|
|
2037
|
+
parsedBody: parsedBody,
|
|
2038
|
+
exceptionCtor: __BaseException,
|
|
2039
|
+
errorCode: errorCode,
|
|
2493
2040
|
});
|
|
2494
|
-
|
|
2041
|
+
_d.label = 13;
|
|
2042
|
+
case 13: return [2];
|
|
2495
2043
|
}
|
|
2496
2044
|
});
|
|
2497
2045
|
}); };
|
|
@@ -2503,28 +2051,26 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
2503
2051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2504
2052
|
return [2, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
|
|
2505
2053
|
}
|
|
2506
|
-
contents = {
|
|
2054
|
+
contents = map({
|
|
2507
2055
|
$metadata: deserializeMetadata(output),
|
|
2508
|
-
|
|
2509
|
-
NextToken: undefined,
|
|
2510
|
-
};
|
|
2056
|
+
});
|
|
2511
2057
|
_a = __expectNonNull;
|
|
2512
2058
|
_b = __expectObject;
|
|
2513
2059
|
return [4, parseBody(output.body, context)];
|
|
2514
2060
|
case 1:
|
|
2515
2061
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2516
|
-
if (data.ApplicationSummaryList
|
|
2062
|
+
if (data.ApplicationSummaryList != null) {
|
|
2517
2063
|
contents.ApplicationSummaryList = deserializeAws_restJson1ApplicationSummaries(data.ApplicationSummaryList, context);
|
|
2518
2064
|
}
|
|
2519
|
-
if (data.NextToken
|
|
2065
|
+
if (data.NextToken != null) {
|
|
2520
2066
|
contents.NextToken = __expectString(data.NextToken);
|
|
2521
2067
|
}
|
|
2522
|
-
return [2,
|
|
2068
|
+
return [2, contents];
|
|
2523
2069
|
}
|
|
2524
2070
|
});
|
|
2525
2071
|
}); };
|
|
2526
2072
|
var deserializeAws_restJson1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2527
|
-
var parsedOutput, _a,
|
|
2073
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2528
2074
|
var _c;
|
|
2529
2075
|
return __generator(this, function (_d) {
|
|
2530
2076
|
switch (_d.label) {
|
|
@@ -2569,14 +2115,14 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
2569
2115
|
case 15: throw _d.sent();
|
|
2570
2116
|
case 16:
|
|
2571
2117
|
parsedBody = parsedOutput.body;
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
$metadata: $metadata,
|
|
2118
|
+
throwDefaultError({
|
|
2119
|
+
output: output,
|
|
2120
|
+
parsedBody: parsedBody,
|
|
2121
|
+
exceptionCtor: __BaseException,
|
|
2122
|
+
errorCode: errorCode,
|
|
2578
2123
|
});
|
|
2579
|
-
|
|
2124
|
+
_d.label = 17;
|
|
2125
|
+
case 17: return [2];
|
|
2580
2126
|
}
|
|
2581
2127
|
});
|
|
2582
2128
|
}); };
|
|
@@ -2588,28 +2134,26 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
2588
2134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2589
2135
|
return [2, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
|
|
2590
2136
|
}
|
|
2591
|
-
contents = {
|
|
2137
|
+
contents = map({
|
|
2592
2138
|
$metadata: deserializeMetadata(output),
|
|
2593
|
-
|
|
2594
|
-
NextToken: undefined,
|
|
2595
|
-
};
|
|
2139
|
+
});
|
|
2596
2140
|
_a = __expectNonNull;
|
|
2597
2141
|
_b = __expectObject;
|
|
2598
2142
|
return [4, parseBody(output.body, context)];
|
|
2599
2143
|
case 1:
|
|
2600
2144
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2601
|
-
if (data.EnvironmentSummaryList
|
|
2145
|
+
if (data.EnvironmentSummaryList != null) {
|
|
2602
2146
|
contents.EnvironmentSummaryList = deserializeAws_restJson1EnvironmentSummaries(data.EnvironmentSummaryList, context);
|
|
2603
2147
|
}
|
|
2604
|
-
if (data.NextToken
|
|
2148
|
+
if (data.NextToken != null) {
|
|
2605
2149
|
contents.NextToken = __expectString(data.NextToken);
|
|
2606
2150
|
}
|
|
2607
|
-
return [2,
|
|
2151
|
+
return [2, contents];
|
|
2608
2152
|
}
|
|
2609
2153
|
});
|
|
2610
2154
|
}); };
|
|
2611
2155
|
var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2612
|
-
var parsedOutput, _a,
|
|
2156
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2613
2157
|
var _c;
|
|
2614
2158
|
return __generator(this, function (_d) {
|
|
2615
2159
|
switch (_d.label) {
|
|
@@ -2646,14 +2190,14 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
2646
2190
|
case 11: throw _d.sent();
|
|
2647
2191
|
case 12:
|
|
2648
2192
|
parsedBody = parsedOutput.body;
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
$metadata: $metadata,
|
|
2193
|
+
throwDefaultError({
|
|
2194
|
+
output: output,
|
|
2195
|
+
parsedBody: parsedBody,
|
|
2196
|
+
exceptionCtor: __BaseException,
|
|
2197
|
+
errorCode: errorCode,
|
|
2655
2198
|
});
|
|
2656
|
-
|
|
2199
|
+
_d.label = 13;
|
|
2200
|
+
case 13: return [2];
|
|
2657
2201
|
}
|
|
2658
2202
|
});
|
|
2659
2203
|
}); };
|
|
@@ -2665,28 +2209,26 @@ export var deserializeAws_restJson1ListEnvironmentVpcsCommand = function (output
|
|
|
2665
2209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2666
2210
|
return [2, deserializeAws_restJson1ListEnvironmentVpcsCommandError(output, context)];
|
|
2667
2211
|
}
|
|
2668
|
-
contents = {
|
|
2212
|
+
contents = map({
|
|
2669
2213
|
$metadata: deserializeMetadata(output),
|
|
2670
|
-
|
|
2671
|
-
NextToken: undefined,
|
|
2672
|
-
};
|
|
2214
|
+
});
|
|
2673
2215
|
_a = __expectNonNull;
|
|
2674
2216
|
_b = __expectObject;
|
|
2675
2217
|
return [4, parseBody(output.body, context)];
|
|
2676
2218
|
case 1:
|
|
2677
2219
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2678
|
-
if (data.EnvironmentVpcList
|
|
2220
|
+
if (data.EnvironmentVpcList != null) {
|
|
2679
2221
|
contents.EnvironmentVpcList = deserializeAws_restJson1EnvironmentVpcs(data.EnvironmentVpcList, context);
|
|
2680
2222
|
}
|
|
2681
|
-
if (data.NextToken
|
|
2223
|
+
if (data.NextToken != null) {
|
|
2682
2224
|
contents.NextToken = __expectString(data.NextToken);
|
|
2683
2225
|
}
|
|
2684
|
-
return [2,
|
|
2226
|
+
return [2, contents];
|
|
2685
2227
|
}
|
|
2686
2228
|
});
|
|
2687
2229
|
}); };
|
|
2688
2230
|
var deserializeAws_restJson1ListEnvironmentVpcsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2689
|
-
var parsedOutput, _a,
|
|
2231
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2690
2232
|
var _c;
|
|
2691
2233
|
return __generator(this, function (_d) {
|
|
2692
2234
|
switch (_d.label) {
|
|
@@ -2723,14 +2265,14 @@ var deserializeAws_restJson1ListEnvironmentVpcsCommandError = function (output,
|
|
|
2723
2265
|
case 11: throw _d.sent();
|
|
2724
2266
|
case 12:
|
|
2725
2267
|
parsedBody = parsedOutput.body;
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
$metadata: $metadata,
|
|
2268
|
+
throwDefaultError({
|
|
2269
|
+
output: output,
|
|
2270
|
+
parsedBody: parsedBody,
|
|
2271
|
+
exceptionCtor: __BaseException,
|
|
2272
|
+
errorCode: errorCode,
|
|
2732
2273
|
});
|
|
2733
|
-
|
|
2274
|
+
_d.label = 13;
|
|
2275
|
+
case 13: return [2];
|
|
2734
2276
|
}
|
|
2735
2277
|
});
|
|
2736
2278
|
}); };
|
|
@@ -2742,28 +2284,26 @@ export var deserializeAws_restJson1ListRoutesCommand = function (output, context
|
|
|
2742
2284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2743
2285
|
return [2, deserializeAws_restJson1ListRoutesCommandError(output, context)];
|
|
2744
2286
|
}
|
|
2745
|
-
contents = {
|
|
2287
|
+
contents = map({
|
|
2746
2288
|
$metadata: deserializeMetadata(output),
|
|
2747
|
-
|
|
2748
|
-
RouteSummaryList: undefined,
|
|
2749
|
-
};
|
|
2289
|
+
});
|
|
2750
2290
|
_a = __expectNonNull;
|
|
2751
2291
|
_b = __expectObject;
|
|
2752
2292
|
return [4, parseBody(output.body, context)];
|
|
2753
2293
|
case 1:
|
|
2754
2294
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2755
|
-
if (data.NextToken
|
|
2295
|
+
if (data.NextToken != null) {
|
|
2756
2296
|
contents.NextToken = __expectString(data.NextToken);
|
|
2757
2297
|
}
|
|
2758
|
-
if (data.RouteSummaryList
|
|
2298
|
+
if (data.RouteSummaryList != null) {
|
|
2759
2299
|
contents.RouteSummaryList = deserializeAws_restJson1RouteSummaries(data.RouteSummaryList, context);
|
|
2760
2300
|
}
|
|
2761
|
-
return [2,
|
|
2301
|
+
return [2, contents];
|
|
2762
2302
|
}
|
|
2763
2303
|
});
|
|
2764
2304
|
}); };
|
|
2765
2305
|
var deserializeAws_restJson1ListRoutesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2766
|
-
var parsedOutput, _a,
|
|
2306
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2767
2307
|
var _c;
|
|
2768
2308
|
return __generator(this, function (_d) {
|
|
2769
2309
|
switch (_d.label) {
|
|
@@ -2808,14 +2348,14 @@ var deserializeAws_restJson1ListRoutesCommandError = function (output, context)
|
|
|
2808
2348
|
case 15: throw _d.sent();
|
|
2809
2349
|
case 16:
|
|
2810
2350
|
parsedBody = parsedOutput.body;
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
$metadata: $metadata,
|
|
2351
|
+
throwDefaultError({
|
|
2352
|
+
output: output,
|
|
2353
|
+
parsedBody: parsedBody,
|
|
2354
|
+
exceptionCtor: __BaseException,
|
|
2355
|
+
errorCode: errorCode,
|
|
2817
2356
|
});
|
|
2818
|
-
|
|
2357
|
+
_d.label = 17;
|
|
2358
|
+
case 17: return [2];
|
|
2819
2359
|
}
|
|
2820
2360
|
});
|
|
2821
2361
|
}); };
|
|
@@ -2827,28 +2367,26 @@ export var deserializeAws_restJson1ListServicesCommand = function (output, conte
|
|
|
2827
2367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2828
2368
|
return [2, deserializeAws_restJson1ListServicesCommandError(output, context)];
|
|
2829
2369
|
}
|
|
2830
|
-
contents = {
|
|
2370
|
+
contents = map({
|
|
2831
2371
|
$metadata: deserializeMetadata(output),
|
|
2832
|
-
|
|
2833
|
-
ServiceSummaryList: undefined,
|
|
2834
|
-
};
|
|
2372
|
+
});
|
|
2835
2373
|
_a = __expectNonNull;
|
|
2836
2374
|
_b = __expectObject;
|
|
2837
2375
|
return [4, parseBody(output.body, context)];
|
|
2838
2376
|
case 1:
|
|
2839
2377
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2840
|
-
if (data.NextToken
|
|
2378
|
+
if (data.NextToken != null) {
|
|
2841
2379
|
contents.NextToken = __expectString(data.NextToken);
|
|
2842
2380
|
}
|
|
2843
|
-
if (data.ServiceSummaryList
|
|
2381
|
+
if (data.ServiceSummaryList != null) {
|
|
2844
2382
|
contents.ServiceSummaryList = deserializeAws_restJson1ServiceSummaries(data.ServiceSummaryList, context);
|
|
2845
2383
|
}
|
|
2846
|
-
return [2,
|
|
2384
|
+
return [2, contents];
|
|
2847
2385
|
}
|
|
2848
2386
|
});
|
|
2849
2387
|
}); };
|
|
2850
2388
|
var deserializeAws_restJson1ListServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2851
|
-
var parsedOutput, _a,
|
|
2389
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2852
2390
|
var _c;
|
|
2853
2391
|
return __generator(this, function (_d) {
|
|
2854
2392
|
switch (_d.label) {
|
|
@@ -2893,14 +2431,14 @@ var deserializeAws_restJson1ListServicesCommandError = function (output, context
|
|
|
2893
2431
|
case 15: throw _d.sent();
|
|
2894
2432
|
case 16:
|
|
2895
2433
|
parsedBody = parsedOutput.body;
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
$metadata: $metadata,
|
|
2434
|
+
throwDefaultError({
|
|
2435
|
+
output: output,
|
|
2436
|
+
parsedBody: parsedBody,
|
|
2437
|
+
exceptionCtor: __BaseException,
|
|
2438
|
+
errorCode: errorCode,
|
|
2902
2439
|
});
|
|
2903
|
-
|
|
2440
|
+
_d.label = 17;
|
|
2441
|
+
case 17: return [2];
|
|
2904
2442
|
}
|
|
2905
2443
|
});
|
|
2906
2444
|
}); };
|
|
@@ -2912,24 +2450,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2912
2450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2913
2451
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2914
2452
|
}
|
|
2915
|
-
contents = {
|
|
2453
|
+
contents = map({
|
|
2916
2454
|
$metadata: deserializeMetadata(output),
|
|
2917
|
-
|
|
2918
|
-
};
|
|
2455
|
+
});
|
|
2919
2456
|
_a = __expectNonNull;
|
|
2920
2457
|
_b = __expectObject;
|
|
2921
2458
|
return [4, parseBody(output.body, context)];
|
|
2922
2459
|
case 1:
|
|
2923
2460
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2924
|
-
if (data.Tags
|
|
2461
|
+
if (data.Tags != null) {
|
|
2925
2462
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2926
2463
|
}
|
|
2927
|
-
return [2,
|
|
2464
|
+
return [2, contents];
|
|
2928
2465
|
}
|
|
2929
2466
|
});
|
|
2930
2467
|
}); };
|
|
2931
2468
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2932
|
-
var parsedOutput, _a,
|
|
2469
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2933
2470
|
var _c;
|
|
2934
2471
|
return __generator(this, function (_d) {
|
|
2935
2472
|
switch (_d.label) {
|
|
@@ -2958,14 +2495,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2958
2495
|
case 7: throw _d.sent();
|
|
2959
2496
|
case 8:
|
|
2960
2497
|
parsedBody = parsedOutput.body;
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
$metadata: $metadata,
|
|
2498
|
+
throwDefaultError({
|
|
2499
|
+
output: output,
|
|
2500
|
+
parsedBody: parsedBody,
|
|
2501
|
+
exceptionCtor: __BaseException,
|
|
2502
|
+
errorCode: errorCode,
|
|
2967
2503
|
});
|
|
2968
|
-
|
|
2504
|
+
_d.label = 9;
|
|
2505
|
+
case 9: return [2];
|
|
2969
2506
|
}
|
|
2970
2507
|
});
|
|
2971
2508
|
}); };
|
|
@@ -2977,18 +2514,18 @@ export var deserializeAws_restJson1PutResourcePolicyCommand = function (output,
|
|
|
2977
2514
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2978
2515
|
return [2, deserializeAws_restJson1PutResourcePolicyCommandError(output, context)];
|
|
2979
2516
|
}
|
|
2980
|
-
contents = {
|
|
2517
|
+
contents = map({
|
|
2981
2518
|
$metadata: deserializeMetadata(output),
|
|
2982
|
-
};
|
|
2519
|
+
});
|
|
2983
2520
|
return [4, collectBody(output.body, context)];
|
|
2984
2521
|
case 1:
|
|
2985
2522
|
_a.sent();
|
|
2986
|
-
return [2,
|
|
2523
|
+
return [2, contents];
|
|
2987
2524
|
}
|
|
2988
2525
|
});
|
|
2989
2526
|
}); };
|
|
2990
2527
|
var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2991
|
-
var parsedOutput, _a,
|
|
2528
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2992
2529
|
var _c;
|
|
2993
2530
|
return __generator(this, function (_d) {
|
|
2994
2531
|
switch (_d.label) {
|
|
@@ -3029,14 +2566,14 @@ var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, co
|
|
|
3029
2566
|
case 13: throw _d.sent();
|
|
3030
2567
|
case 14:
|
|
3031
2568
|
parsedBody = parsedOutput.body;
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
$metadata: $metadata,
|
|
2569
|
+
throwDefaultError({
|
|
2570
|
+
output: output,
|
|
2571
|
+
parsedBody: parsedBody,
|
|
2572
|
+
exceptionCtor: __BaseException,
|
|
2573
|
+
errorCode: errorCode,
|
|
3038
2574
|
});
|
|
3039
|
-
|
|
2575
|
+
_d.label = 15;
|
|
2576
|
+
case 15: return [2];
|
|
3040
2577
|
}
|
|
3041
2578
|
});
|
|
3042
2579
|
}); };
|
|
@@ -3048,18 +2585,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3048
2585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3049
2586
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3050
2587
|
}
|
|
3051
|
-
contents = {
|
|
2588
|
+
contents = map({
|
|
3052
2589
|
$metadata: deserializeMetadata(output),
|
|
3053
|
-
};
|
|
2590
|
+
});
|
|
3054
2591
|
return [4, collectBody(output.body, context)];
|
|
3055
2592
|
case 1:
|
|
3056
2593
|
_a.sent();
|
|
3057
|
-
return [2,
|
|
2594
|
+
return [2, contents];
|
|
3058
2595
|
}
|
|
3059
2596
|
});
|
|
3060
2597
|
}); };
|
|
3061
2598
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3062
|
-
var parsedOutput, _a,
|
|
2599
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3063
2600
|
var _c;
|
|
3064
2601
|
return __generator(this, function (_d) {
|
|
3065
2602
|
switch (_d.label) {
|
|
@@ -3088,14 +2625,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3088
2625
|
case 7: throw _d.sent();
|
|
3089
2626
|
case 8:
|
|
3090
2627
|
parsedBody = parsedOutput.body;
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
$metadata: $metadata,
|
|
2628
|
+
throwDefaultError({
|
|
2629
|
+
output: output,
|
|
2630
|
+
parsedBody: parsedBody,
|
|
2631
|
+
exceptionCtor: __BaseException,
|
|
2632
|
+
errorCode: errorCode,
|
|
3097
2633
|
});
|
|
3098
|
-
|
|
2634
|
+
_d.label = 9;
|
|
2635
|
+
case 9: return [2];
|
|
3099
2636
|
}
|
|
3100
2637
|
});
|
|
3101
2638
|
}); };
|
|
@@ -3107,18 +2644,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3107
2644
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3108
2645
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3109
2646
|
}
|
|
3110
|
-
contents = {
|
|
2647
|
+
contents = map({
|
|
3111
2648
|
$metadata: deserializeMetadata(output),
|
|
3112
|
-
};
|
|
2649
|
+
});
|
|
3113
2650
|
return [4, collectBody(output.body, context)];
|
|
3114
2651
|
case 1:
|
|
3115
2652
|
_a.sent();
|
|
3116
|
-
return [2,
|
|
2653
|
+
return [2, contents];
|
|
3117
2654
|
}
|
|
3118
2655
|
});
|
|
3119
2656
|
}); };
|
|
3120
2657
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3121
|
-
var parsedOutput, _a,
|
|
2658
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3122
2659
|
var _c;
|
|
3123
2660
|
return __generator(this, function (_d) {
|
|
3124
2661
|
switch (_d.label) {
|
|
@@ -3147,14 +2684,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3147
2684
|
case 7: throw _d.sent();
|
|
3148
2685
|
case 8:
|
|
3149
2686
|
parsedBody = parsedOutput.body;
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
$metadata: $metadata,
|
|
2687
|
+
throwDefaultError({
|
|
2688
|
+
output: output,
|
|
2689
|
+
parsedBody: parsedBody,
|
|
2690
|
+
exceptionCtor: __BaseException,
|
|
2691
|
+
errorCode: errorCode,
|
|
3156
2692
|
});
|
|
3157
|
-
|
|
2693
|
+
_d.label = 9;
|
|
2694
|
+
case 9: return [2];
|
|
3158
2695
|
}
|
|
3159
2696
|
});
|
|
3160
2697
|
}); };
|
|
@@ -3166,44 +2703,38 @@ export var deserializeAws_restJson1UpdateRouteCommand = function (output, contex
|
|
|
3166
2703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3167
2704
|
return [2, deserializeAws_restJson1UpdateRouteCommandError(output, context)];
|
|
3168
2705
|
}
|
|
3169
|
-
contents = {
|
|
2706
|
+
contents = map({
|
|
3170
2707
|
$metadata: deserializeMetadata(output),
|
|
3171
|
-
|
|
3172
|
-
Arn: undefined,
|
|
3173
|
-
LastUpdatedTime: undefined,
|
|
3174
|
-
RouteId: undefined,
|
|
3175
|
-
ServiceId: undefined,
|
|
3176
|
-
State: undefined,
|
|
3177
|
-
};
|
|
2708
|
+
});
|
|
3178
2709
|
_a = __expectNonNull;
|
|
3179
2710
|
_b = __expectObject;
|
|
3180
2711
|
return [4, parseBody(output.body, context)];
|
|
3181
2712
|
case 1:
|
|
3182
2713
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3183
|
-
if (data.ApplicationId
|
|
2714
|
+
if (data.ApplicationId != null) {
|
|
3184
2715
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
3185
2716
|
}
|
|
3186
|
-
if (data.Arn
|
|
2717
|
+
if (data.Arn != null) {
|
|
3187
2718
|
contents.Arn = __expectString(data.Arn);
|
|
3188
2719
|
}
|
|
3189
|
-
if (data.LastUpdatedTime
|
|
2720
|
+
if (data.LastUpdatedTime != null) {
|
|
3190
2721
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
3191
2722
|
}
|
|
3192
|
-
if (data.RouteId
|
|
2723
|
+
if (data.RouteId != null) {
|
|
3193
2724
|
contents.RouteId = __expectString(data.RouteId);
|
|
3194
2725
|
}
|
|
3195
|
-
if (data.ServiceId
|
|
2726
|
+
if (data.ServiceId != null) {
|
|
3196
2727
|
contents.ServiceId = __expectString(data.ServiceId);
|
|
3197
2728
|
}
|
|
3198
|
-
if (data.State
|
|
2729
|
+
if (data.State != null) {
|
|
3199
2730
|
contents.State = __expectString(data.State);
|
|
3200
2731
|
}
|
|
3201
|
-
return [2,
|
|
2732
|
+
return [2, contents];
|
|
3202
2733
|
}
|
|
3203
2734
|
});
|
|
3204
2735
|
}); };
|
|
3205
2736
|
var deserializeAws_restJson1UpdateRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3206
|
-
var parsedOutput, _a,
|
|
2737
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3207
2738
|
var _c;
|
|
3208
2739
|
return __generator(this, function (_d) {
|
|
3209
2740
|
switch (_d.label) {
|
|
@@ -3240,23 +2771,24 @@ var deserializeAws_restJson1UpdateRouteCommandError = function (output, context)
|
|
|
3240
2771
|
case 11: throw _d.sent();
|
|
3241
2772
|
case 12:
|
|
3242
2773
|
parsedBody = parsedOutput.body;
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
$metadata: $metadata,
|
|
2774
|
+
throwDefaultError({
|
|
2775
|
+
output: output,
|
|
2776
|
+
parsedBody: parsedBody,
|
|
2777
|
+
exceptionCtor: __BaseException,
|
|
2778
|
+
errorCode: errorCode,
|
|
3249
2779
|
});
|
|
3250
|
-
|
|
2780
|
+
_d.label = 13;
|
|
2781
|
+
case 13: return [2];
|
|
3251
2782
|
}
|
|
3252
2783
|
});
|
|
3253
2784
|
}); };
|
|
2785
|
+
var map = __map;
|
|
3254
2786
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3255
2787
|
var contents, data, exception;
|
|
3256
2788
|
return __generator(this, function (_a) {
|
|
3257
|
-
contents = {};
|
|
2789
|
+
contents = map({});
|
|
3258
2790
|
data = parsedOutput.body;
|
|
3259
|
-
if (data.Message
|
|
2791
|
+
if (data.Message != null) {
|
|
3260
2792
|
contents.Message = __expectString(data.Message);
|
|
3261
2793
|
}
|
|
3262
2794
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3266,15 +2798,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3266
2798
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3267
2799
|
var contents, data, exception;
|
|
3268
2800
|
return __generator(this, function (_a) {
|
|
3269
|
-
contents = {};
|
|
2801
|
+
contents = map({});
|
|
3270
2802
|
data = parsedOutput.body;
|
|
3271
|
-
if (data.Message
|
|
2803
|
+
if (data.Message != null) {
|
|
3272
2804
|
contents.Message = __expectString(data.Message);
|
|
3273
2805
|
}
|
|
3274
|
-
if (data.ResourceId
|
|
2806
|
+
if (data.ResourceId != null) {
|
|
3275
2807
|
contents.ResourceId = __expectString(data.ResourceId);
|
|
3276
2808
|
}
|
|
3277
|
-
if (data.ResourceType
|
|
2809
|
+
if (data.ResourceType != null) {
|
|
3278
2810
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3279
2811
|
}
|
|
3280
2812
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3284,9 +2816,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3284
2816
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3285
2817
|
var contents, data, exception;
|
|
3286
2818
|
return __generator(this, function (_a) {
|
|
3287
|
-
contents = {};
|
|
2819
|
+
contents = map({});
|
|
3288
2820
|
data = parsedOutput.body;
|
|
3289
|
-
if (data.Message
|
|
2821
|
+
if (data.Message != null) {
|
|
3290
2822
|
contents.Message = __expectString(data.Message);
|
|
3291
2823
|
}
|
|
3292
2824
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3296,9 +2828,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3296
2828
|
var deserializeAws_restJson1InvalidResourcePolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3297
2829
|
var contents, data, exception;
|
|
3298
2830
|
return __generator(this, function (_a) {
|
|
3299
|
-
contents = {};
|
|
2831
|
+
contents = map({});
|
|
3300
2832
|
data = parsedOutput.body;
|
|
3301
|
-
if (data.Message
|
|
2833
|
+
if (data.Message != null) {
|
|
3302
2834
|
contents.Message = __expectString(data.Message);
|
|
3303
2835
|
}
|
|
3304
2836
|
exception = new InvalidResourcePolicyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3308,15 +2840,15 @@ var deserializeAws_restJson1InvalidResourcePolicyExceptionResponse = function (p
|
|
|
3308
2840
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3309
2841
|
var contents, data, exception;
|
|
3310
2842
|
return __generator(this, function (_a) {
|
|
3311
|
-
contents = {};
|
|
2843
|
+
contents = map({});
|
|
3312
2844
|
data = parsedOutput.body;
|
|
3313
|
-
if (data.Message
|
|
2845
|
+
if (data.Message != null) {
|
|
3314
2846
|
contents.Message = __expectString(data.Message);
|
|
3315
2847
|
}
|
|
3316
|
-
if (data.ResourceId
|
|
2848
|
+
if (data.ResourceId != null) {
|
|
3317
2849
|
contents.ResourceId = __expectString(data.ResourceId);
|
|
3318
2850
|
}
|
|
3319
|
-
if (data.ResourceType
|
|
2851
|
+
if (data.ResourceType != null) {
|
|
3320
2852
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3321
2853
|
}
|
|
3322
2854
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3326,21 +2858,21 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3326
2858
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3327
2859
|
var contents, data, exception;
|
|
3328
2860
|
return __generator(this, function (_a) {
|
|
3329
|
-
contents = {};
|
|
2861
|
+
contents = map({});
|
|
3330
2862
|
data = parsedOutput.body;
|
|
3331
|
-
if (data.Message
|
|
2863
|
+
if (data.Message != null) {
|
|
3332
2864
|
contents.Message = __expectString(data.Message);
|
|
3333
2865
|
}
|
|
3334
|
-
if (data.QuotaCode
|
|
2866
|
+
if (data.QuotaCode != null) {
|
|
3335
2867
|
contents.QuotaCode = __expectString(data.QuotaCode);
|
|
3336
2868
|
}
|
|
3337
|
-
if (data.ResourceId
|
|
2869
|
+
if (data.ResourceId != null) {
|
|
3338
2870
|
contents.ResourceId = __expectString(data.ResourceId);
|
|
3339
2871
|
}
|
|
3340
|
-
if (data.ResourceType
|
|
2872
|
+
if (data.ResourceType != null) {
|
|
3341
2873
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3342
2874
|
}
|
|
3343
|
-
if (data.ServiceCode
|
|
2875
|
+
if (data.ServiceCode != null) {
|
|
3344
2876
|
contents.ServiceCode = __expectString(data.ServiceCode);
|
|
3345
2877
|
}
|
|
3346
2878
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3350,18 +2882,20 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3350
2882
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3351
2883
|
var contents, data, exception;
|
|
3352
2884
|
return __generator(this, function (_a) {
|
|
3353
|
-
contents = {
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
2885
|
+
contents = map({
|
|
2886
|
+
RetryAfterSeconds: [
|
|
2887
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
2888
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
2889
|
+
],
|
|
2890
|
+
});
|
|
3357
2891
|
data = parsedOutput.body;
|
|
3358
|
-
if (data.Message
|
|
2892
|
+
if (data.Message != null) {
|
|
3359
2893
|
contents.Message = __expectString(data.Message);
|
|
3360
2894
|
}
|
|
3361
|
-
if (data.QuotaCode
|
|
2895
|
+
if (data.QuotaCode != null) {
|
|
3362
2896
|
contents.QuotaCode = __expectString(data.QuotaCode);
|
|
3363
2897
|
}
|
|
3364
|
-
if (data.ServiceCode
|
|
2898
|
+
if (data.ServiceCode != null) {
|
|
3365
2899
|
contents.ServiceCode = __expectString(data.ServiceCode);
|
|
3366
2900
|
}
|
|
3367
2901
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3371,9 +2905,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3371
2905
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3372
2906
|
var contents, data, exception;
|
|
3373
2907
|
return __generator(this, function (_a) {
|
|
3374
|
-
contents = {};
|
|
2908
|
+
contents = map({});
|
|
3375
2909
|
data = parsedOutput.body;
|
|
3376
|
-
if (data.Message
|
|
2910
|
+
if (data.Message != null) {
|
|
3377
2911
|
contents.Message = __expectString(data.Message);
|
|
3378
2912
|
}
|
|
3379
2913
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3390,9 +2924,6 @@ var serializeAws_restJson1HttpMethods = function (input, context) {
|
|
|
3390
2924
|
return input
|
|
3391
2925
|
.filter(function (e) { return e != null; })
|
|
3392
2926
|
.map(function (entry) {
|
|
3393
|
-
if (entry === null) {
|
|
3394
|
-
return null;
|
|
3395
|
-
}
|
|
3396
2927
|
return entry;
|
|
3397
2928
|
});
|
|
3398
2929
|
};
|