@aws-sdk/client-appconfig 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +696 -1558
- package/dist-es/protocols/Aws_restJson1.js +862 -1547
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AppConfigServiceException as __BaseException } from "../models/AppConfigServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, InternalServerException, PayloadTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -28,7 +28,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
28
28
|
});
|
|
29
29
|
}); };
|
|
30
30
|
export var serializeAws_restJson1CreateConfigurationProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
31
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
31
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
32
32
|
return __generator(this, function (_c) {
|
|
33
33
|
switch (_c.label) {
|
|
34
34
|
case 0: return [4, context.endpoint()];
|
|
@@ -39,16 +39,7 @@ export var serializeAws_restJson1CreateConfigurationProfileCommand = function (i
|
|
|
39
39
|
};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
41
41
|
"/applications/{ApplicationId}/configurationprofiles";
|
|
42
|
-
|
|
43
|
-
labelValue = input.ApplicationId;
|
|
44
|
-
if (labelValue.length <= 0) {
|
|
45
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
46
|
-
}
|
|
47
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
51
|
-
}
|
|
42
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
52
43
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.LocationUri != null && { LocationUri: input.LocationUri })), (input.Name != null && { Name: input.Name })), (input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type != null && { Type: input.Type })), (input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
53
44
|
return [2, new __HttpRequest({
|
|
54
45
|
protocol: protocol,
|
|
@@ -89,7 +80,7 @@ export var serializeAws_restJson1CreateDeploymentStrategyCommand = function (inp
|
|
|
89
80
|
});
|
|
90
81
|
}); };
|
|
91
82
|
export var serializeAws_restJson1CreateEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
83
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
93
84
|
return __generator(this, function (_c) {
|
|
94
85
|
switch (_c.label) {
|
|
95
86
|
case 0: return [4, context.endpoint()];
|
|
@@ -100,16 +91,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
100
91
|
};
|
|
101
92
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
102
93
|
"/applications/{ApplicationId}/environments";
|
|
103
|
-
|
|
104
|
-
labelValue = input.ApplicationId;
|
|
105
|
-
if (labelValue.length <= 0) {
|
|
106
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
107
|
-
}
|
|
108
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
112
|
-
}
|
|
94
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
113
95
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
114
96
|
return [2, new __HttpRequest({
|
|
115
97
|
protocol: protocol,
|
|
@@ -130,9 +112,13 @@ export var serializeAws_restJson1CreateExtensionCommand = function (input, conte
|
|
|
130
112
|
case 0: return [4, context.endpoint()];
|
|
131
113
|
case 1:
|
|
132
114
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
133
|
-
headers =
|
|
134
|
-
"
|
|
135
|
-
|
|
115
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
116
|
+
"content-type": "application/json",
|
|
117
|
+
"latest-version-number": [
|
|
118
|
+
function () { return isSerializableHeaderValue(input.LatestVersionNumber); },
|
|
119
|
+
function () { return input.LatestVersionNumber.toString(); },
|
|
120
|
+
],
|
|
121
|
+
});
|
|
136
122
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions";
|
|
137
123
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_restJson1ActionsMap(input.Actions, context) })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
138
124
|
return [2, new __HttpRequest({
|
|
@@ -172,37 +158,24 @@ export var serializeAws_restJson1CreateExtensionAssociationCommand = function (i
|
|
|
172
158
|
});
|
|
173
159
|
}); };
|
|
174
160
|
export var serializeAws_restJson1CreateHostedConfigurationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
175
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
161
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
176
162
|
return __generator(this, function (_c) {
|
|
177
163
|
switch (_c.label) {
|
|
178
164
|
case 0: return [4, context.endpoint()];
|
|
179
165
|
case 1:
|
|
180
166
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
181
|
-
headers =
|
|
182
|
-
"
|
|
183
|
-
|
|
167
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
168
|
+
"content-type": input.ContentType || "application/octet-stream",
|
|
169
|
+
description: input.Description,
|
|
170
|
+
"latest-version-number": [
|
|
171
|
+
function () { return isSerializableHeaderValue(input.LatestVersionNumber); },
|
|
172
|
+
function () { return input.LatestVersionNumber.toString(); },
|
|
173
|
+
],
|
|
174
|
+
});
|
|
184
175
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
185
176
|
"/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions";
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
if (labelValue.length <= 0) {
|
|
189
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
190
|
-
}
|
|
191
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
195
|
-
}
|
|
196
|
-
if (input.ConfigurationProfileId !== undefined) {
|
|
197
|
-
labelValue = input.ConfigurationProfileId;
|
|
198
|
-
if (labelValue.length <= 0) {
|
|
199
|
-
throw new Error("Empty value provided for input HTTP label: ConfigurationProfileId.");
|
|
200
|
-
}
|
|
201
|
-
resolvedPath = resolvedPath.replace("{ConfigurationProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
205
|
-
}
|
|
177
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
178
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", function () { return input.ConfigurationProfileId; }, "{ConfigurationProfileId}", false);
|
|
206
179
|
if (input.Content !== undefined) {
|
|
207
180
|
body = input.Content;
|
|
208
181
|
}
|
|
@@ -219,7 +192,7 @@ export var serializeAws_restJson1CreateHostedConfigurationVersionCommand = funct
|
|
|
219
192
|
});
|
|
220
193
|
}); };
|
|
221
194
|
export var serializeAws_restJson1DeleteApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
222
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
195
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
223
196
|
return __generator(this, function (_c) {
|
|
224
197
|
switch (_c.label) {
|
|
225
198
|
case 0: return [4, context.endpoint()];
|
|
@@ -227,16 +200,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
|
|
|
227
200
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
228
201
|
headers = {};
|
|
229
202
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
|
|
230
|
-
|
|
231
|
-
labelValue = input.ApplicationId;
|
|
232
|
-
if (labelValue.length <= 0) {
|
|
233
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
234
|
-
}
|
|
235
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
239
|
-
}
|
|
203
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
240
204
|
return [2, new __HttpRequest({
|
|
241
205
|
protocol: protocol,
|
|
242
206
|
hostname: hostname,
|
|
@@ -250,7 +214,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
|
|
|
250
214
|
});
|
|
251
215
|
}); };
|
|
252
216
|
export var serializeAws_restJson1DeleteConfigurationProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
253
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
217
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
254
218
|
return __generator(this, function (_c) {
|
|
255
219
|
switch (_c.label) {
|
|
256
220
|
case 0: return [4, context.endpoint()];
|
|
@@ -259,26 +223,8 @@ export var serializeAws_restJson1DeleteConfigurationProfileCommand = function (i
|
|
|
259
223
|
headers = {};
|
|
260
224
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
261
225
|
"/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}";
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if (labelValue.length <= 0) {
|
|
265
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
266
|
-
}
|
|
267
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
271
|
-
}
|
|
272
|
-
if (input.ConfigurationProfileId !== undefined) {
|
|
273
|
-
labelValue = input.ConfigurationProfileId;
|
|
274
|
-
if (labelValue.length <= 0) {
|
|
275
|
-
throw new Error("Empty value provided for input HTTP label: ConfigurationProfileId.");
|
|
276
|
-
}
|
|
277
|
-
resolvedPath = resolvedPath.replace("{ConfigurationProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
281
|
-
}
|
|
226
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
227
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", function () { return input.ConfigurationProfileId; }, "{ConfigurationProfileId}", false);
|
|
282
228
|
return [2, new __HttpRequest({
|
|
283
229
|
protocol: protocol,
|
|
284
230
|
hostname: hostname,
|
|
@@ -292,7 +238,7 @@ export var serializeAws_restJson1DeleteConfigurationProfileCommand = function (i
|
|
|
292
238
|
});
|
|
293
239
|
}); };
|
|
294
240
|
export var serializeAws_restJson1DeleteDeploymentStrategyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
295
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
241
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
296
242
|
return __generator(this, function (_c) {
|
|
297
243
|
switch (_c.label) {
|
|
298
244
|
case 0: return [4, context.endpoint()];
|
|
@@ -301,16 +247,7 @@ export var serializeAws_restJson1DeleteDeploymentStrategyCommand = function (inp
|
|
|
301
247
|
headers = {};
|
|
302
248
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
303
249
|
"/deployementstrategies/{DeploymentStrategyId}";
|
|
304
|
-
|
|
305
|
-
labelValue = input.DeploymentStrategyId;
|
|
306
|
-
if (labelValue.length <= 0) {
|
|
307
|
-
throw new Error("Empty value provided for input HTTP label: DeploymentStrategyId.");
|
|
308
|
-
}
|
|
309
|
-
resolvedPath = resolvedPath.replace("{DeploymentStrategyId}", __extendedEncodeURIComponent(labelValue));
|
|
310
|
-
}
|
|
311
|
-
else {
|
|
312
|
-
throw new Error("No value provided for input HTTP label: DeploymentStrategyId.");
|
|
313
|
-
}
|
|
250
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentStrategyId", function () { return input.DeploymentStrategyId; }, "{DeploymentStrategyId}", false);
|
|
314
251
|
return [2, new __HttpRequest({
|
|
315
252
|
protocol: protocol,
|
|
316
253
|
hostname: hostname,
|
|
@@ -324,7 +261,7 @@ export var serializeAws_restJson1DeleteDeploymentStrategyCommand = function (inp
|
|
|
324
261
|
});
|
|
325
262
|
}); };
|
|
326
263
|
export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
327
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
264
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
328
265
|
return __generator(this, function (_c) {
|
|
329
266
|
switch (_c.label) {
|
|
330
267
|
case 0: return [4, context.endpoint()];
|
|
@@ -333,26 +270,8 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
333
270
|
headers = {};
|
|
334
271
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
335
272
|
"/applications/{ApplicationId}/environments/{EnvironmentId}";
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
if (labelValue.length <= 0) {
|
|
339
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
340
|
-
}
|
|
341
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
345
|
-
}
|
|
346
|
-
if (input.EnvironmentId !== undefined) {
|
|
347
|
-
labelValue = input.EnvironmentId;
|
|
348
|
-
if (labelValue.length <= 0) {
|
|
349
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentId.");
|
|
350
|
-
}
|
|
351
|
-
resolvedPath = resolvedPath.replace("{EnvironmentId}", __extendedEncodeURIComponent(labelValue));
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
355
|
-
}
|
|
273
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
274
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", function () { return input.EnvironmentId; }, "{EnvironmentId}", false);
|
|
356
275
|
return [2, new __HttpRequest({
|
|
357
276
|
protocol: protocol,
|
|
358
277
|
hostname: hostname,
|
|
@@ -366,7 +285,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
366
285
|
});
|
|
367
286
|
}); };
|
|
368
287
|
export var serializeAws_restJson1DeleteExtensionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
369
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
288
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
370
289
|
return __generator(this, function (_c) {
|
|
371
290
|
switch (_c.label) {
|
|
372
291
|
case 0: return [4, context.endpoint()];
|
|
@@ -374,17 +293,10 @@ export var serializeAws_restJson1DeleteExtensionCommand = function (input, conte
|
|
|
374
293
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
375
294
|
headers = {};
|
|
376
295
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions/{ExtensionIdentifier}";
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
|
|
386
|
-
}
|
|
387
|
-
query = __assign({}, (input.VersionNumber !== undefined && { version: input.VersionNumber.toString() }));
|
|
296
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionIdentifier", function () { return input.ExtensionIdentifier; }, "{ExtensionIdentifier}", false);
|
|
297
|
+
query = map({
|
|
298
|
+
version: [function () { return input.VersionNumber !== void 0; }, function () { return input.VersionNumber.toString(); }],
|
|
299
|
+
});
|
|
388
300
|
return [2, new __HttpRequest({
|
|
389
301
|
protocol: protocol,
|
|
390
302
|
hostname: hostname,
|
|
@@ -399,7 +311,7 @@ export var serializeAws_restJson1DeleteExtensionCommand = function (input, conte
|
|
|
399
311
|
});
|
|
400
312
|
}); };
|
|
401
313
|
export var serializeAws_restJson1DeleteExtensionAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
402
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
314
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
403
315
|
return __generator(this, function (_c) {
|
|
404
316
|
switch (_c.label) {
|
|
405
317
|
case 0: return [4, context.endpoint()];
|
|
@@ -408,16 +320,7 @@ export var serializeAws_restJson1DeleteExtensionAssociationCommand = function (i
|
|
|
408
320
|
headers = {};
|
|
409
321
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
410
322
|
"/extensionassociations/{ExtensionAssociationId}";
|
|
411
|
-
|
|
412
|
-
labelValue = input.ExtensionAssociationId;
|
|
413
|
-
if (labelValue.length <= 0) {
|
|
414
|
-
throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
|
|
415
|
-
}
|
|
416
|
-
resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", __extendedEncodeURIComponent(labelValue));
|
|
417
|
-
}
|
|
418
|
-
else {
|
|
419
|
-
throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
|
|
420
|
-
}
|
|
323
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionAssociationId", function () { return input.ExtensionAssociationId; }, "{ExtensionAssociationId}", false);
|
|
421
324
|
return [2, new __HttpRequest({
|
|
422
325
|
protocol: protocol,
|
|
423
326
|
hostname: hostname,
|
|
@@ -431,7 +334,7 @@ export var serializeAws_restJson1DeleteExtensionAssociationCommand = function (i
|
|
|
431
334
|
});
|
|
432
335
|
}); };
|
|
433
336
|
export var serializeAws_restJson1DeleteHostedConfigurationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
434
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
337
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
435
338
|
return __generator(this, function (_c) {
|
|
436
339
|
switch (_c.label) {
|
|
437
340
|
case 0: return [4, context.endpoint()];
|
|
@@ -440,36 +343,9 @@ export var serializeAws_restJson1DeleteHostedConfigurationVersionCommand = funct
|
|
|
440
343
|
headers = {};
|
|
441
344
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
442
345
|
"/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}";
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
447
|
-
}
|
|
448
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
449
|
-
}
|
|
450
|
-
else {
|
|
451
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
452
|
-
}
|
|
453
|
-
if (input.ConfigurationProfileId !== undefined) {
|
|
454
|
-
labelValue = input.ConfigurationProfileId;
|
|
455
|
-
if (labelValue.length <= 0) {
|
|
456
|
-
throw new Error("Empty value provided for input HTTP label: ConfigurationProfileId.");
|
|
457
|
-
}
|
|
458
|
-
resolvedPath = resolvedPath.replace("{ConfigurationProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
459
|
-
}
|
|
460
|
-
else {
|
|
461
|
-
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
462
|
-
}
|
|
463
|
-
if (input.VersionNumber !== undefined) {
|
|
464
|
-
labelValue = input.VersionNumber.toString();
|
|
465
|
-
if (labelValue.length <= 0) {
|
|
466
|
-
throw new Error("Empty value provided for input HTTP label: VersionNumber.");
|
|
467
|
-
}
|
|
468
|
-
resolvedPath = resolvedPath.replace("{VersionNumber}", __extendedEncodeURIComponent(labelValue));
|
|
469
|
-
}
|
|
470
|
-
else {
|
|
471
|
-
throw new Error("No value provided for input HTTP label: VersionNumber.");
|
|
472
|
-
}
|
|
346
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
347
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", function () { return input.ConfigurationProfileId; }, "{ConfigurationProfileId}", false);
|
|
348
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VersionNumber", function () { return input.VersionNumber.toString(); }, "{VersionNumber}", false);
|
|
473
349
|
return [2, new __HttpRequest({
|
|
474
350
|
protocol: protocol,
|
|
475
351
|
hostname: hostname,
|
|
@@ -483,7 +359,7 @@ export var serializeAws_restJson1DeleteHostedConfigurationVersionCommand = funct
|
|
|
483
359
|
});
|
|
484
360
|
}); };
|
|
485
361
|
export var serializeAws_restJson1GetApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
486
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
362
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
487
363
|
return __generator(this, function (_c) {
|
|
488
364
|
switch (_c.label) {
|
|
489
365
|
case 0: return [4, context.endpoint()];
|
|
@@ -491,16 +367,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
|
|
|
491
367
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
492
368
|
headers = {};
|
|
493
369
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
|
|
494
|
-
|
|
495
|
-
labelValue = input.ApplicationId;
|
|
496
|
-
if (labelValue.length <= 0) {
|
|
497
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
498
|
-
}
|
|
499
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
500
|
-
}
|
|
501
|
-
else {
|
|
502
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
503
|
-
}
|
|
370
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
504
371
|
return [2, new __HttpRequest({
|
|
505
372
|
protocol: protocol,
|
|
506
373
|
hostname: hostname,
|
|
@@ -514,7 +381,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
|
|
|
514
381
|
});
|
|
515
382
|
}); };
|
|
516
383
|
export var serializeAws_restJson1GetConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
517
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
384
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
518
385
|
return __generator(this, function (_c) {
|
|
519
386
|
switch (_c.label) {
|
|
520
387
|
case 0: return [4, context.endpoint()];
|
|
@@ -523,39 +390,13 @@ export var serializeAws_restJson1GetConfigurationCommand = function (input, cont
|
|
|
523
390
|
headers = {};
|
|
524
391
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
525
392
|
"/applications/{Application}/environments/{Environment}/configurations/{Configuration}";
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
else {
|
|
534
|
-
throw new Error("No value provided for input HTTP label: Application.");
|
|
535
|
-
}
|
|
536
|
-
if (input.Environment !== undefined) {
|
|
537
|
-
labelValue = input.Environment;
|
|
538
|
-
if (labelValue.length <= 0) {
|
|
539
|
-
throw new Error("Empty value provided for input HTTP label: Environment.");
|
|
540
|
-
}
|
|
541
|
-
resolvedPath = resolvedPath.replace("{Environment}", __extendedEncodeURIComponent(labelValue));
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
throw new Error("No value provided for input HTTP label: Environment.");
|
|
545
|
-
}
|
|
546
|
-
if (input.Configuration !== undefined) {
|
|
547
|
-
labelValue = input.Configuration;
|
|
548
|
-
if (labelValue.length <= 0) {
|
|
549
|
-
throw new Error("Empty value provided for input HTTP label: Configuration.");
|
|
550
|
-
}
|
|
551
|
-
resolvedPath = resolvedPath.replace("{Configuration}", __extendedEncodeURIComponent(labelValue));
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
throw new Error("No value provided for input HTTP label: Configuration.");
|
|
555
|
-
}
|
|
556
|
-
query = __assign(__assign({}, (input.ClientId !== undefined && { client_id: input.ClientId })), (input.ClientConfigurationVersion !== undefined && {
|
|
557
|
-
client_configuration_version: input.ClientConfigurationVersion,
|
|
558
|
-
}));
|
|
393
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Application", function () { return input.Application; }, "{Application}", false);
|
|
394
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Environment", function () { return input.Environment; }, "{Environment}", false);
|
|
395
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Configuration", function () { return input.Configuration; }, "{Configuration}", false);
|
|
396
|
+
query = map({
|
|
397
|
+
client_id: [, input.ClientId],
|
|
398
|
+
client_configuration_version: [, input.ClientConfigurationVersion],
|
|
399
|
+
});
|
|
559
400
|
return [2, new __HttpRequest({
|
|
560
401
|
protocol: protocol,
|
|
561
402
|
hostname: hostname,
|
|
@@ -570,7 +411,7 @@ export var serializeAws_restJson1GetConfigurationCommand = function (input, cont
|
|
|
570
411
|
});
|
|
571
412
|
}); };
|
|
572
413
|
export var serializeAws_restJson1GetConfigurationProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
573
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
414
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
574
415
|
return __generator(this, function (_c) {
|
|
575
416
|
switch (_c.label) {
|
|
576
417
|
case 0: return [4, context.endpoint()];
|
|
@@ -579,26 +420,8 @@ export var serializeAws_restJson1GetConfigurationProfileCommand = function (inpu
|
|
|
579
420
|
headers = {};
|
|
580
421
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
581
422
|
"/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}";
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
if (labelValue.length <= 0) {
|
|
585
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
586
|
-
}
|
|
587
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
588
|
-
}
|
|
589
|
-
else {
|
|
590
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
591
|
-
}
|
|
592
|
-
if (input.ConfigurationProfileId !== undefined) {
|
|
593
|
-
labelValue = input.ConfigurationProfileId;
|
|
594
|
-
if (labelValue.length <= 0) {
|
|
595
|
-
throw new Error("Empty value provided for input HTTP label: ConfigurationProfileId.");
|
|
596
|
-
}
|
|
597
|
-
resolvedPath = resolvedPath.replace("{ConfigurationProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
598
|
-
}
|
|
599
|
-
else {
|
|
600
|
-
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
601
|
-
}
|
|
423
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
424
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", function () { return input.ConfigurationProfileId; }, "{ConfigurationProfileId}", false);
|
|
602
425
|
return [2, new __HttpRequest({
|
|
603
426
|
protocol: protocol,
|
|
604
427
|
hostname: hostname,
|
|
@@ -612,7 +435,7 @@ export var serializeAws_restJson1GetConfigurationProfileCommand = function (inpu
|
|
|
612
435
|
});
|
|
613
436
|
}); };
|
|
614
437
|
export var serializeAws_restJson1GetDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
615
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
438
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
616
439
|
return __generator(this, function (_c) {
|
|
617
440
|
switch (_c.label) {
|
|
618
441
|
case 0: return [4, context.endpoint()];
|
|
@@ -621,36 +444,9 @@ export var serializeAws_restJson1GetDeploymentCommand = function (input, context
|
|
|
621
444
|
headers = {};
|
|
622
445
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
623
446
|
"/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}";
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
628
|
-
}
|
|
629
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
630
|
-
}
|
|
631
|
-
else {
|
|
632
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
633
|
-
}
|
|
634
|
-
if (input.EnvironmentId !== undefined) {
|
|
635
|
-
labelValue = input.EnvironmentId;
|
|
636
|
-
if (labelValue.length <= 0) {
|
|
637
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentId.");
|
|
638
|
-
}
|
|
639
|
-
resolvedPath = resolvedPath.replace("{EnvironmentId}", __extendedEncodeURIComponent(labelValue));
|
|
640
|
-
}
|
|
641
|
-
else {
|
|
642
|
-
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
643
|
-
}
|
|
644
|
-
if (input.DeploymentNumber !== undefined) {
|
|
645
|
-
labelValue = input.DeploymentNumber.toString();
|
|
646
|
-
if (labelValue.length <= 0) {
|
|
647
|
-
throw new Error("Empty value provided for input HTTP label: DeploymentNumber.");
|
|
648
|
-
}
|
|
649
|
-
resolvedPath = resolvedPath.replace("{DeploymentNumber}", __extendedEncodeURIComponent(labelValue));
|
|
650
|
-
}
|
|
651
|
-
else {
|
|
652
|
-
throw new Error("No value provided for input HTTP label: DeploymentNumber.");
|
|
653
|
-
}
|
|
447
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
448
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", function () { return input.EnvironmentId; }, "{EnvironmentId}", false);
|
|
449
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentNumber", function () { return input.DeploymentNumber.toString(); }, "{DeploymentNumber}", false);
|
|
654
450
|
return [2, new __HttpRequest({
|
|
655
451
|
protocol: protocol,
|
|
656
452
|
hostname: hostname,
|
|
@@ -664,7 +460,7 @@ export var serializeAws_restJson1GetDeploymentCommand = function (input, context
|
|
|
664
460
|
});
|
|
665
461
|
}); };
|
|
666
462
|
export var serializeAws_restJson1GetDeploymentStrategyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
667
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
463
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
668
464
|
return __generator(this, function (_c) {
|
|
669
465
|
switch (_c.label) {
|
|
670
466
|
case 0: return [4, context.endpoint()];
|
|
@@ -673,16 +469,7 @@ export var serializeAws_restJson1GetDeploymentStrategyCommand = function (input,
|
|
|
673
469
|
headers = {};
|
|
674
470
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
675
471
|
"/deploymentstrategies/{DeploymentStrategyId}";
|
|
676
|
-
|
|
677
|
-
labelValue = input.DeploymentStrategyId;
|
|
678
|
-
if (labelValue.length <= 0) {
|
|
679
|
-
throw new Error("Empty value provided for input HTTP label: DeploymentStrategyId.");
|
|
680
|
-
}
|
|
681
|
-
resolvedPath = resolvedPath.replace("{DeploymentStrategyId}", __extendedEncodeURIComponent(labelValue));
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
throw new Error("No value provided for input HTTP label: DeploymentStrategyId.");
|
|
685
|
-
}
|
|
472
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentStrategyId", function () { return input.DeploymentStrategyId; }, "{DeploymentStrategyId}", false);
|
|
686
473
|
return [2, new __HttpRequest({
|
|
687
474
|
protocol: protocol,
|
|
688
475
|
hostname: hostname,
|
|
@@ -696,7 +483,7 @@ export var serializeAws_restJson1GetDeploymentStrategyCommand = function (input,
|
|
|
696
483
|
});
|
|
697
484
|
}); };
|
|
698
485
|
export var serializeAws_restJson1GetEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
699
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
486
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
700
487
|
return __generator(this, function (_c) {
|
|
701
488
|
switch (_c.label) {
|
|
702
489
|
case 0: return [4, context.endpoint()];
|
|
@@ -705,26 +492,8 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
705
492
|
headers = {};
|
|
706
493
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
707
494
|
"/applications/{ApplicationId}/environments/{EnvironmentId}";
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
if (labelValue.length <= 0) {
|
|
711
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
712
|
-
}
|
|
713
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
714
|
-
}
|
|
715
|
-
else {
|
|
716
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
717
|
-
}
|
|
718
|
-
if (input.EnvironmentId !== undefined) {
|
|
719
|
-
labelValue = input.EnvironmentId;
|
|
720
|
-
if (labelValue.length <= 0) {
|
|
721
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentId.");
|
|
722
|
-
}
|
|
723
|
-
resolvedPath = resolvedPath.replace("{EnvironmentId}", __extendedEncodeURIComponent(labelValue));
|
|
724
|
-
}
|
|
725
|
-
else {
|
|
726
|
-
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
727
|
-
}
|
|
495
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
496
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", function () { return input.EnvironmentId; }, "{EnvironmentId}", false);
|
|
728
497
|
return [2, new __HttpRequest({
|
|
729
498
|
protocol: protocol,
|
|
730
499
|
hostname: hostname,
|
|
@@ -738,7 +507,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
738
507
|
});
|
|
739
508
|
}); };
|
|
740
509
|
export var serializeAws_restJson1GetExtensionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
741
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
510
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
742
511
|
return __generator(this, function (_c) {
|
|
743
512
|
switch (_c.label) {
|
|
744
513
|
case 0: return [4, context.endpoint()];
|
|
@@ -746,17 +515,10 @@ export var serializeAws_restJson1GetExtensionCommand = function (input, context)
|
|
|
746
515
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
747
516
|
headers = {};
|
|
748
517
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions/{ExtensionIdentifier}";
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}
|
|
754
|
-
resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
755
|
-
}
|
|
756
|
-
else {
|
|
757
|
-
throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
|
|
758
|
-
}
|
|
759
|
-
query = __assign({}, (input.VersionNumber !== undefined && { version_number: input.VersionNumber.toString() }));
|
|
518
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionIdentifier", function () { return input.ExtensionIdentifier; }, "{ExtensionIdentifier}", false);
|
|
519
|
+
query = map({
|
|
520
|
+
version_number: [function () { return input.VersionNumber !== void 0; }, function () { return input.VersionNumber.toString(); }],
|
|
521
|
+
});
|
|
760
522
|
return [2, new __HttpRequest({
|
|
761
523
|
protocol: protocol,
|
|
762
524
|
hostname: hostname,
|
|
@@ -771,7 +533,7 @@ export var serializeAws_restJson1GetExtensionCommand = function (input, context)
|
|
|
771
533
|
});
|
|
772
534
|
}); };
|
|
773
535
|
export var serializeAws_restJson1GetExtensionAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
774
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
536
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
775
537
|
return __generator(this, function (_c) {
|
|
776
538
|
switch (_c.label) {
|
|
777
539
|
case 0: return [4, context.endpoint()];
|
|
@@ -780,16 +542,7 @@ export var serializeAws_restJson1GetExtensionAssociationCommand = function (inpu
|
|
|
780
542
|
headers = {};
|
|
781
543
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
782
544
|
"/extensionassociations/{ExtensionAssociationId}";
|
|
783
|
-
|
|
784
|
-
labelValue = input.ExtensionAssociationId;
|
|
785
|
-
if (labelValue.length <= 0) {
|
|
786
|
-
throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
|
|
787
|
-
}
|
|
788
|
-
resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", __extendedEncodeURIComponent(labelValue));
|
|
789
|
-
}
|
|
790
|
-
else {
|
|
791
|
-
throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
|
|
792
|
-
}
|
|
545
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionAssociationId", function () { return input.ExtensionAssociationId; }, "{ExtensionAssociationId}", false);
|
|
793
546
|
return [2, new __HttpRequest({
|
|
794
547
|
protocol: protocol,
|
|
795
548
|
hostname: hostname,
|
|
@@ -803,7 +556,7 @@ export var serializeAws_restJson1GetExtensionAssociationCommand = function (inpu
|
|
|
803
556
|
});
|
|
804
557
|
}); };
|
|
805
558
|
export var serializeAws_restJson1GetHostedConfigurationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
806
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
559
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
807
560
|
return __generator(this, function (_c) {
|
|
808
561
|
switch (_c.label) {
|
|
809
562
|
case 0: return [4, context.endpoint()];
|
|
@@ -812,36 +565,9 @@ export var serializeAws_restJson1GetHostedConfigurationVersionCommand = function
|
|
|
812
565
|
headers = {};
|
|
813
566
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
814
567
|
"/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}";
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
819
|
-
}
|
|
820
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
821
|
-
}
|
|
822
|
-
else {
|
|
823
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
824
|
-
}
|
|
825
|
-
if (input.ConfigurationProfileId !== undefined) {
|
|
826
|
-
labelValue = input.ConfigurationProfileId;
|
|
827
|
-
if (labelValue.length <= 0) {
|
|
828
|
-
throw new Error("Empty value provided for input HTTP label: ConfigurationProfileId.");
|
|
829
|
-
}
|
|
830
|
-
resolvedPath = resolvedPath.replace("{ConfigurationProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
831
|
-
}
|
|
832
|
-
else {
|
|
833
|
-
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
834
|
-
}
|
|
835
|
-
if (input.VersionNumber !== undefined) {
|
|
836
|
-
labelValue = input.VersionNumber.toString();
|
|
837
|
-
if (labelValue.length <= 0) {
|
|
838
|
-
throw new Error("Empty value provided for input HTTP label: VersionNumber.");
|
|
839
|
-
}
|
|
840
|
-
resolvedPath = resolvedPath.replace("{VersionNumber}", __extendedEncodeURIComponent(labelValue));
|
|
841
|
-
}
|
|
842
|
-
else {
|
|
843
|
-
throw new Error("No value provided for input HTTP label: VersionNumber.");
|
|
844
|
-
}
|
|
568
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
569
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", function () { return input.ConfigurationProfileId; }, "{ConfigurationProfileId}", false);
|
|
570
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VersionNumber", function () { return input.VersionNumber.toString(); }, "{VersionNumber}", false);
|
|
845
571
|
return [2, new __HttpRequest({
|
|
846
572
|
protocol: protocol,
|
|
847
573
|
hostname: hostname,
|
|
@@ -863,7 +589,10 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
|
|
|
863
589
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
864
590
|
headers = {};
|
|
865
591
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
866
|
-
query =
|
|
592
|
+
query = map({
|
|
593
|
+
max_results: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
594
|
+
next_token: [, input.NextToken],
|
|
595
|
+
});
|
|
867
596
|
return [2, new __HttpRequest({
|
|
868
597
|
protocol: protocol,
|
|
869
598
|
hostname: hostname,
|
|
@@ -878,7 +607,7 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
|
|
|
878
607
|
});
|
|
879
608
|
}); };
|
|
880
609
|
export var serializeAws_restJson1ListConfigurationProfilesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
881
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
610
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
882
611
|
return __generator(this, function (_c) {
|
|
883
612
|
switch (_c.label) {
|
|
884
613
|
case 0: return [4, context.endpoint()];
|
|
@@ -887,17 +616,12 @@ export var serializeAws_restJson1ListConfigurationProfilesCommand = function (in
|
|
|
887
616
|
headers = {};
|
|
888
617
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
889
618
|
"/applications/{ApplicationId}/configurationprofiles";
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}
|
|
897
|
-
else {
|
|
898
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
899
|
-
}
|
|
900
|
-
query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken })), (input.Type !== undefined && { type: input.Type }));
|
|
619
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
620
|
+
query = map({
|
|
621
|
+
max_results: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
622
|
+
next_token: [, input.NextToken],
|
|
623
|
+
type: [, input.Type],
|
|
624
|
+
});
|
|
901
625
|
return [2, new __HttpRequest({
|
|
902
626
|
protocol: protocol,
|
|
903
627
|
hostname: hostname,
|
|
@@ -912,7 +636,7 @@ export var serializeAws_restJson1ListConfigurationProfilesCommand = function (in
|
|
|
912
636
|
});
|
|
913
637
|
}); };
|
|
914
638
|
export var serializeAws_restJson1ListDeploymentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
915
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
639
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
916
640
|
return __generator(this, function (_c) {
|
|
917
641
|
switch (_c.label) {
|
|
918
642
|
case 0: return [4, context.endpoint()];
|
|
@@ -921,27 +645,12 @@ export var serializeAws_restJson1ListDeploymentsCommand = function (input, conte
|
|
|
921
645
|
headers = {};
|
|
922
646
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
923
647
|
"/applications/{ApplicationId}/environments/{EnvironmentId}/deployments";
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}
|
|
931
|
-
else {
|
|
932
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
933
|
-
}
|
|
934
|
-
if (input.EnvironmentId !== undefined) {
|
|
935
|
-
labelValue = input.EnvironmentId;
|
|
936
|
-
if (labelValue.length <= 0) {
|
|
937
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentId.");
|
|
938
|
-
}
|
|
939
|
-
resolvedPath = resolvedPath.replace("{EnvironmentId}", __extendedEncodeURIComponent(labelValue));
|
|
940
|
-
}
|
|
941
|
-
else {
|
|
942
|
-
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
943
|
-
}
|
|
944
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
|
|
648
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
649
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", function () { return input.EnvironmentId; }, "{EnvironmentId}", false);
|
|
650
|
+
query = map({
|
|
651
|
+
max_results: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
652
|
+
next_token: [, input.NextToken],
|
|
653
|
+
});
|
|
945
654
|
return [2, new __HttpRequest({
|
|
946
655
|
protocol: protocol,
|
|
947
656
|
hostname: hostname,
|
|
@@ -964,7 +673,10 @@ export var serializeAws_restJson1ListDeploymentStrategiesCommand = function (inp
|
|
|
964
673
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
965
674
|
headers = {};
|
|
966
675
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deploymentstrategies";
|
|
967
|
-
query =
|
|
676
|
+
query = map({
|
|
677
|
+
max_results: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
678
|
+
next_token: [, input.NextToken],
|
|
679
|
+
});
|
|
968
680
|
return [2, new __HttpRequest({
|
|
969
681
|
protocol: protocol,
|
|
970
682
|
hostname: hostname,
|
|
@@ -979,7 +691,7 @@ export var serializeAws_restJson1ListDeploymentStrategiesCommand = function (inp
|
|
|
979
691
|
});
|
|
980
692
|
}); };
|
|
981
693
|
export var serializeAws_restJson1ListEnvironmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
982
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
694
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
983
695
|
return __generator(this, function (_c) {
|
|
984
696
|
switch (_c.label) {
|
|
985
697
|
case 0: return [4, context.endpoint()];
|
|
@@ -988,17 +700,11 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
|
|
|
988
700
|
headers = {};
|
|
989
701
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
990
702
|
"/applications/{ApplicationId}/environments";
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
997
|
-
}
|
|
998
|
-
else {
|
|
999
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1000
|
-
}
|
|
1001
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
|
|
703
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
704
|
+
query = map({
|
|
705
|
+
max_results: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
706
|
+
next_token: [, input.NextToken],
|
|
707
|
+
});
|
|
1002
708
|
return [2, new __HttpRequest({
|
|
1003
709
|
protocol: protocol,
|
|
1004
710
|
hostname: hostname,
|
|
@@ -1021,9 +727,16 @@ export var serializeAws_restJson1ListExtensionAssociationsCommand = function (in
|
|
|
1021
727
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1022
728
|
headers = {};
|
|
1023
729
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensionassociations";
|
|
1024
|
-
query =
|
|
1025
|
-
|
|
1026
|
-
|
|
730
|
+
query = map({
|
|
731
|
+
resource_identifier: [, input.ResourceIdentifier],
|
|
732
|
+
extension_identifier: [, input.ExtensionIdentifier],
|
|
733
|
+
extension_version_number: [
|
|
734
|
+
function () { return input.ExtensionVersionNumber !== void 0; },
|
|
735
|
+
function () { return input.ExtensionVersionNumber.toString(); },
|
|
736
|
+
],
|
|
737
|
+
max_results: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
738
|
+
next_token: [, input.NextToken],
|
|
739
|
+
});
|
|
1027
740
|
return [2, new __HttpRequest({
|
|
1028
741
|
protocol: protocol,
|
|
1029
742
|
hostname: hostname,
|
|
@@ -1046,7 +759,11 @@ export var serializeAws_restJson1ListExtensionsCommand = function (input, contex
|
|
|
1046
759
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1047
760
|
headers = {};
|
|
1048
761
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions";
|
|
1049
|
-
query =
|
|
762
|
+
query = map({
|
|
763
|
+
max_results: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
764
|
+
next_token: [, input.NextToken],
|
|
765
|
+
name: [, input.Name],
|
|
766
|
+
});
|
|
1050
767
|
return [2, new __HttpRequest({
|
|
1051
768
|
protocol: protocol,
|
|
1052
769
|
hostname: hostname,
|
|
@@ -1061,7 +778,7 @@ export var serializeAws_restJson1ListExtensionsCommand = function (input, contex
|
|
|
1061
778
|
});
|
|
1062
779
|
}); };
|
|
1063
780
|
export var serializeAws_restJson1ListHostedConfigurationVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1064
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
781
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1065
782
|
return __generator(this, function (_c) {
|
|
1066
783
|
switch (_c.label) {
|
|
1067
784
|
case 0: return [4, context.endpoint()];
|
|
@@ -1070,27 +787,12 @@ export var serializeAws_restJson1ListHostedConfigurationVersionsCommand = functi
|
|
|
1070
787
|
headers = {};
|
|
1071
788
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1072
789
|
"/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions";
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1080
|
-
else {
|
|
1081
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1082
|
-
}
|
|
1083
|
-
if (input.ConfigurationProfileId !== undefined) {
|
|
1084
|
-
labelValue = input.ConfigurationProfileId;
|
|
1085
|
-
if (labelValue.length <= 0) {
|
|
1086
|
-
throw new Error("Empty value provided for input HTTP label: ConfigurationProfileId.");
|
|
1087
|
-
}
|
|
1088
|
-
resolvedPath = resolvedPath.replace("{ConfigurationProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
1089
|
-
}
|
|
1090
|
-
else {
|
|
1091
|
-
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
1092
|
-
}
|
|
1093
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
|
|
790
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
791
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", function () { return input.ConfigurationProfileId; }, "{ConfigurationProfileId}", false);
|
|
792
|
+
query = map({
|
|
793
|
+
max_results: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
794
|
+
next_token: [, input.NextToken],
|
|
795
|
+
});
|
|
1094
796
|
return [2, new __HttpRequest({
|
|
1095
797
|
protocol: protocol,
|
|
1096
798
|
hostname: hostname,
|
|
@@ -1105,7 +807,7 @@ export var serializeAws_restJson1ListHostedConfigurationVersionsCommand = functi
|
|
|
1105
807
|
});
|
|
1106
808
|
}); };
|
|
1107
809
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1108
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
810
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1109
811
|
return __generator(this, function (_c) {
|
|
1110
812
|
switch (_c.label) {
|
|
1111
813
|
case 0: return [4, context.endpoint()];
|
|
@@ -1113,16 +815,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1113
815
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1114
816
|
headers = {};
|
|
1115
817
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
1116
|
-
|
|
1117
|
-
labelValue = input.ResourceArn;
|
|
1118
|
-
if (labelValue.length <= 0) {
|
|
1119
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1120
|
-
}
|
|
1121
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1122
|
-
}
|
|
1123
|
-
else {
|
|
1124
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1125
|
-
}
|
|
818
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
1126
819
|
return [2, new __HttpRequest({
|
|
1127
820
|
protocol: protocol,
|
|
1128
821
|
hostname: hostname,
|
|
@@ -1136,7 +829,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1136
829
|
});
|
|
1137
830
|
}); };
|
|
1138
831
|
export var serializeAws_restJson1StartDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1139
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
832
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1140
833
|
return __generator(this, function (_c) {
|
|
1141
834
|
switch (_c.label) {
|
|
1142
835
|
case 0: return [4, context.endpoint()];
|
|
@@ -1147,26 +840,8 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
|
|
|
1147
840
|
};
|
|
1148
841
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1149
842
|
"/applications/{ApplicationId}/environments/{EnvironmentId}/deployments";
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
if (labelValue.length <= 0) {
|
|
1153
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
1154
|
-
}
|
|
1155
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
1156
|
-
}
|
|
1157
|
-
else {
|
|
1158
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1159
|
-
}
|
|
1160
|
-
if (input.EnvironmentId !== undefined) {
|
|
1161
|
-
labelValue = input.EnvironmentId;
|
|
1162
|
-
if (labelValue.length <= 0) {
|
|
1163
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentId.");
|
|
1164
|
-
}
|
|
1165
|
-
resolvedPath = resolvedPath.replace("{EnvironmentId}", __extendedEncodeURIComponent(labelValue));
|
|
1166
|
-
}
|
|
1167
|
-
else {
|
|
1168
|
-
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
1169
|
-
}
|
|
843
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
844
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", function () { return input.EnvironmentId; }, "{EnvironmentId}", false);
|
|
1170
845
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationProfileId != null && { ConfigurationProfileId: input.ConfigurationProfileId })), (input.ConfigurationVersion != null && { ConfigurationVersion: input.ConfigurationVersion })), (input.DeploymentStrategyId != null && { DeploymentStrategyId: input.DeploymentStrategyId })), (input.Description != null && { Description: input.Description })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
1171
846
|
return [2, new __HttpRequest({
|
|
1172
847
|
protocol: protocol,
|
|
@@ -1181,7 +856,7 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
|
|
|
1181
856
|
});
|
|
1182
857
|
}); };
|
|
1183
858
|
export var serializeAws_restJson1StopDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1184
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
859
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1185
860
|
return __generator(this, function (_c) {
|
|
1186
861
|
switch (_c.label) {
|
|
1187
862
|
case 0: return [4, context.endpoint()];
|
|
@@ -1190,36 +865,9 @@ export var serializeAws_restJson1StopDeploymentCommand = function (input, contex
|
|
|
1190
865
|
headers = {};
|
|
1191
866
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1192
867
|
"/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}";
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
1197
|
-
}
|
|
1198
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
1199
|
-
}
|
|
1200
|
-
else {
|
|
1201
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1202
|
-
}
|
|
1203
|
-
if (input.EnvironmentId !== undefined) {
|
|
1204
|
-
labelValue = input.EnvironmentId;
|
|
1205
|
-
if (labelValue.length <= 0) {
|
|
1206
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentId.");
|
|
1207
|
-
}
|
|
1208
|
-
resolvedPath = resolvedPath.replace("{EnvironmentId}", __extendedEncodeURIComponent(labelValue));
|
|
1209
|
-
}
|
|
1210
|
-
else {
|
|
1211
|
-
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
1212
|
-
}
|
|
1213
|
-
if (input.DeploymentNumber !== undefined) {
|
|
1214
|
-
labelValue = input.DeploymentNumber.toString();
|
|
1215
|
-
if (labelValue.length <= 0) {
|
|
1216
|
-
throw new Error("Empty value provided for input HTTP label: DeploymentNumber.");
|
|
1217
|
-
}
|
|
1218
|
-
resolvedPath = resolvedPath.replace("{DeploymentNumber}", __extendedEncodeURIComponent(labelValue));
|
|
1219
|
-
}
|
|
1220
|
-
else {
|
|
1221
|
-
throw new Error("No value provided for input HTTP label: DeploymentNumber.");
|
|
1222
|
-
}
|
|
868
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
869
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", function () { return input.EnvironmentId; }, "{EnvironmentId}", false);
|
|
870
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentNumber", function () { return input.DeploymentNumber.toString(); }, "{DeploymentNumber}", false);
|
|
1223
871
|
return [2, new __HttpRequest({
|
|
1224
872
|
protocol: protocol,
|
|
1225
873
|
hostname: hostname,
|
|
@@ -1233,7 +881,7 @@ export var serializeAws_restJson1StopDeploymentCommand = function (input, contex
|
|
|
1233
881
|
});
|
|
1234
882
|
}); };
|
|
1235
883
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1236
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
884
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1237
885
|
return __generator(this, function (_c) {
|
|
1238
886
|
switch (_c.label) {
|
|
1239
887
|
case 0: return [4, context.endpoint()];
|
|
@@ -1243,16 +891,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1243
891
|
"content-type": "application/json",
|
|
1244
892
|
};
|
|
1245
893
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
1246
|
-
|
|
1247
|
-
labelValue = input.ResourceArn;
|
|
1248
|
-
if (labelValue.length <= 0) {
|
|
1249
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1250
|
-
}
|
|
1251
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1252
|
-
}
|
|
1253
|
-
else {
|
|
1254
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1255
|
-
}
|
|
894
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
1256
895
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
1257
896
|
return [2, new __HttpRequest({
|
|
1258
897
|
protocol: protocol,
|
|
@@ -1267,7 +906,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1267
906
|
});
|
|
1268
907
|
}); };
|
|
1269
908
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1270
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
909
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1271
910
|
return __generator(this, function (_c) {
|
|
1272
911
|
switch (_c.label) {
|
|
1273
912
|
case 0: return [4, context.endpoint()];
|
|
@@ -1275,17 +914,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1275
914
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1276
915
|
headers = {};
|
|
1277
916
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
}
|
|
1283
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1284
|
-
}
|
|
1285
|
-
else {
|
|
1286
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1287
|
-
}
|
|
1288
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
917
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
918
|
+
query = map({
|
|
919
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
920
|
+
});
|
|
1289
921
|
return [2, new __HttpRequest({
|
|
1290
922
|
protocol: protocol,
|
|
1291
923
|
hostname: hostname,
|
|
@@ -1300,7 +932,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1300
932
|
});
|
|
1301
933
|
}); };
|
|
1302
934
|
export var serializeAws_restJson1UpdateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1303
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
935
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1304
936
|
return __generator(this, function (_c) {
|
|
1305
937
|
switch (_c.label) {
|
|
1306
938
|
case 0: return [4, context.endpoint()];
|
|
@@ -1310,16 +942,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
1310
942
|
"content-type": "application/json",
|
|
1311
943
|
};
|
|
1312
944
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
|
|
1313
|
-
|
|
1314
|
-
labelValue = input.ApplicationId;
|
|
1315
|
-
if (labelValue.length <= 0) {
|
|
1316
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
1317
|
-
}
|
|
1318
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
1319
|
-
}
|
|
1320
|
-
else {
|
|
1321
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1322
|
-
}
|
|
945
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
1323
946
|
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
1324
947
|
return [2, new __HttpRequest({
|
|
1325
948
|
protocol: protocol,
|
|
@@ -1334,7 +957,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
1334
957
|
});
|
|
1335
958
|
}); };
|
|
1336
959
|
export var serializeAws_restJson1UpdateConfigurationProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1337
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
960
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1338
961
|
return __generator(this, function (_c) {
|
|
1339
962
|
switch (_c.label) {
|
|
1340
963
|
case 0: return [4, context.endpoint()];
|
|
@@ -1345,26 +968,8 @@ export var serializeAws_restJson1UpdateConfigurationProfileCommand = function (i
|
|
|
1345
968
|
};
|
|
1346
969
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1347
970
|
"/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}";
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
if (labelValue.length <= 0) {
|
|
1351
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
1352
|
-
}
|
|
1353
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
1354
|
-
}
|
|
1355
|
-
else {
|
|
1356
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1357
|
-
}
|
|
1358
|
-
if (input.ConfigurationProfileId !== undefined) {
|
|
1359
|
-
labelValue = input.ConfigurationProfileId;
|
|
1360
|
-
if (labelValue.length <= 0) {
|
|
1361
|
-
throw new Error("Empty value provided for input HTTP label: ConfigurationProfileId.");
|
|
1362
|
-
}
|
|
1363
|
-
resolvedPath = resolvedPath.replace("{ConfigurationProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
1364
|
-
}
|
|
1365
|
-
else {
|
|
1366
|
-
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
1367
|
-
}
|
|
971
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
972
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", function () { return input.ConfigurationProfileId; }, "{ConfigurationProfileId}", false);
|
|
1368
973
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
1369
974
|
return [2, new __HttpRequest({
|
|
1370
975
|
protocol: protocol,
|
|
@@ -1379,7 +984,7 @@ export var serializeAws_restJson1UpdateConfigurationProfileCommand = function (i
|
|
|
1379
984
|
});
|
|
1380
985
|
}); };
|
|
1381
986
|
export var serializeAws_restJson1UpdateDeploymentStrategyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1382
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
987
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1383
988
|
return __generator(this, function (_c) {
|
|
1384
989
|
switch (_c.label) {
|
|
1385
990
|
case 0: return [4, context.endpoint()];
|
|
@@ -1390,16 +995,7 @@ export var serializeAws_restJson1UpdateDeploymentStrategyCommand = function (inp
|
|
|
1390
995
|
};
|
|
1391
996
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1392
997
|
"/deploymentstrategies/{DeploymentStrategyId}";
|
|
1393
|
-
|
|
1394
|
-
labelValue = input.DeploymentStrategyId;
|
|
1395
|
-
if (labelValue.length <= 0) {
|
|
1396
|
-
throw new Error("Empty value provided for input HTTP label: DeploymentStrategyId.");
|
|
1397
|
-
}
|
|
1398
|
-
resolvedPath = resolvedPath.replace("{DeploymentStrategyId}", __extendedEncodeURIComponent(labelValue));
|
|
1399
|
-
}
|
|
1400
|
-
else {
|
|
1401
|
-
throw new Error("No value provided for input HTTP label: DeploymentStrategyId.");
|
|
1402
|
-
}
|
|
998
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentStrategyId", function () { return input.DeploymentStrategyId; }, "{DeploymentStrategyId}", false);
|
|
1403
999
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes != null && {
|
|
1404
1000
|
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
1405
1001
|
})), (input.Description != null && { Description: input.Description })), (input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes })), (input.GrowthFactor != null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType != null && { GrowthType: input.GrowthType })));
|
|
@@ -1416,7 +1012,7 @@ export var serializeAws_restJson1UpdateDeploymentStrategyCommand = function (inp
|
|
|
1416
1012
|
});
|
|
1417
1013
|
}); };
|
|
1418
1014
|
export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1419
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1015
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1420
1016
|
return __generator(this, function (_c) {
|
|
1421
1017
|
switch (_c.label) {
|
|
1422
1018
|
case 0: return [4, context.endpoint()];
|
|
@@ -1427,26 +1023,8 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
1427
1023
|
};
|
|
1428
1024
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1429
1025
|
"/applications/{ApplicationId}/environments/{EnvironmentId}";
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
if (labelValue.length <= 0) {
|
|
1433
|
-
throw new Error("Empty value provided for input HTTP label: ApplicationId.");
|
|
1434
|
-
}
|
|
1435
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
1436
|
-
}
|
|
1437
|
-
else {
|
|
1438
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1439
|
-
}
|
|
1440
|
-
if (input.EnvironmentId !== undefined) {
|
|
1441
|
-
labelValue = input.EnvironmentId;
|
|
1442
|
-
if (labelValue.length <= 0) {
|
|
1443
|
-
throw new Error("Empty value provided for input HTTP label: EnvironmentId.");
|
|
1444
|
-
}
|
|
1445
|
-
resolvedPath = resolvedPath.replace("{EnvironmentId}", __extendedEncodeURIComponent(labelValue));
|
|
1446
|
-
}
|
|
1447
|
-
else {
|
|
1448
|
-
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
1449
|
-
}
|
|
1026
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
1027
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", function () { return input.EnvironmentId; }, "{EnvironmentId}", false);
|
|
1450
1028
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name != null && { Name: input.Name })));
|
|
1451
1029
|
return [2, new __HttpRequest({
|
|
1452
1030
|
protocol: protocol,
|
|
@@ -1461,7 +1039,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
1461
1039
|
});
|
|
1462
1040
|
}); };
|
|
1463
1041
|
export var serializeAws_restJson1UpdateExtensionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1464
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1042
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1465
1043
|
return __generator(this, function (_c) {
|
|
1466
1044
|
switch (_c.label) {
|
|
1467
1045
|
case 0: return [4, context.endpoint()];
|
|
@@ -1471,16 +1049,7 @@ export var serializeAws_restJson1UpdateExtensionCommand = function (input, conte
|
|
|
1471
1049
|
"content-type": "application/json",
|
|
1472
1050
|
};
|
|
1473
1051
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions/{ExtensionIdentifier}";
|
|
1474
|
-
|
|
1475
|
-
labelValue = input.ExtensionIdentifier;
|
|
1476
|
-
if (labelValue.length <= 0) {
|
|
1477
|
-
throw new Error("Empty value provided for input HTTP label: ExtensionIdentifier.");
|
|
1478
|
-
}
|
|
1479
|
-
resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
1480
|
-
}
|
|
1481
|
-
else {
|
|
1482
|
-
throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
|
|
1483
|
-
}
|
|
1052
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionIdentifier", function () { return input.ExtensionIdentifier; }, "{ExtensionIdentifier}", false);
|
|
1484
1053
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_restJson1ActionsMap(input.Actions, context) })), (input.Description != null && { Description: input.Description })), (input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) })), (input.VersionNumber != null && { VersionNumber: input.VersionNumber })));
|
|
1485
1054
|
return [2, new __HttpRequest({
|
|
1486
1055
|
protocol: protocol,
|
|
@@ -1495,7 +1064,7 @@ export var serializeAws_restJson1UpdateExtensionCommand = function (input, conte
|
|
|
1495
1064
|
});
|
|
1496
1065
|
}); };
|
|
1497
1066
|
export var serializeAws_restJson1UpdateExtensionAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1498
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1067
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1499
1068
|
return __generator(this, function (_c) {
|
|
1500
1069
|
switch (_c.label) {
|
|
1501
1070
|
case 0: return [4, context.endpoint()];
|
|
@@ -1506,16 +1075,7 @@ export var serializeAws_restJson1UpdateExtensionAssociationCommand = function (i
|
|
|
1506
1075
|
};
|
|
1507
1076
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1508
1077
|
"/extensionassociations/{ExtensionAssociationId}";
|
|
1509
|
-
|
|
1510
|
-
labelValue = input.ExtensionAssociationId;
|
|
1511
|
-
if (labelValue.length <= 0) {
|
|
1512
|
-
throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
|
|
1513
|
-
}
|
|
1514
|
-
resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", __extendedEncodeURIComponent(labelValue));
|
|
1515
|
-
}
|
|
1516
|
-
else {
|
|
1517
|
-
throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
|
|
1518
|
-
}
|
|
1078
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionAssociationId", function () { return input.ExtensionAssociationId; }, "{ExtensionAssociationId}", false);
|
|
1519
1079
|
body = JSON.stringify(__assign({}, (input.Parameters != null && { Parameters: serializeAws_restJson1ParameterValueMap(input.Parameters, context) })));
|
|
1520
1080
|
return [2, new __HttpRequest({
|
|
1521
1081
|
protocol: protocol,
|
|
@@ -1530,7 +1090,7 @@ export var serializeAws_restJson1UpdateExtensionAssociationCommand = function (i
|
|
|
1530
1090
|
});
|
|
1531
1091
|
}); };
|
|
1532
1092
|
export var serializeAws_restJson1ValidateConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1533
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1093
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1534
1094
|
return __generator(this, function (_c) {
|
|
1535
1095
|
switch (_c.label) {
|
|
1536
1096
|
case 0: return [4, context.endpoint()];
|
|
@@ -1539,27 +1099,11 @@ export var serializeAws_restJson1ValidateConfigurationCommand = function (input,
|
|
|
1539
1099
|
headers = {};
|
|
1540
1100
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1541
1101
|
"/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/validators";
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
resolvedPath = resolvedPath.replace("{ApplicationId}", __extendedEncodeURIComponent(labelValue));
|
|
1548
|
-
}
|
|
1549
|
-
else {
|
|
1550
|
-
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1551
|
-
}
|
|
1552
|
-
if (input.ConfigurationProfileId !== undefined) {
|
|
1553
|
-
labelValue = input.ConfigurationProfileId;
|
|
1554
|
-
if (labelValue.length <= 0) {
|
|
1555
|
-
throw new Error("Empty value provided for input HTTP label: ConfigurationProfileId.");
|
|
1556
|
-
}
|
|
1557
|
-
resolvedPath = resolvedPath.replace("{ConfigurationProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
1558
|
-
}
|
|
1559
|
-
else {
|
|
1560
|
-
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
1561
|
-
}
|
|
1562
|
-
query = __assign({}, (input.ConfigurationVersion !== undefined && { configuration_version: input.ConfigurationVersion }));
|
|
1102
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", function () { return input.ApplicationId; }, "{ApplicationId}", false);
|
|
1103
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", function () { return input.ConfigurationProfileId; }, "{ConfigurationProfileId}", false);
|
|
1104
|
+
query = map({
|
|
1105
|
+
configuration_version: [, input.ConfigurationVersion],
|
|
1106
|
+
});
|
|
1563
1107
|
return [2, new __HttpRequest({
|
|
1564
1108
|
protocol: protocol,
|
|
1565
1109
|
hostname: hostname,
|
|
@@ -1581,32 +1125,29 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
|
|
|
1581
1125
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1582
1126
|
return [2, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
|
|
1583
1127
|
}
|
|
1584
|
-
contents = {
|
|
1128
|
+
contents = map({
|
|
1585
1129
|
$metadata: deserializeMetadata(output),
|
|
1586
|
-
|
|
1587
|
-
Id: undefined,
|
|
1588
|
-
Name: undefined,
|
|
1589
|
-
};
|
|
1130
|
+
});
|
|
1590
1131
|
_a = __expectNonNull;
|
|
1591
1132
|
_b = __expectObject;
|
|
1592
1133
|
return [4, parseBody(output.body, context)];
|
|
1593
1134
|
case 1:
|
|
1594
1135
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1595
|
-
if (data.Description
|
|
1136
|
+
if (data.Description != null) {
|
|
1596
1137
|
contents.Description = __expectString(data.Description);
|
|
1597
1138
|
}
|
|
1598
|
-
if (data.Id
|
|
1139
|
+
if (data.Id != null) {
|
|
1599
1140
|
contents.Id = __expectString(data.Id);
|
|
1600
1141
|
}
|
|
1601
|
-
if (data.Name
|
|
1142
|
+
if (data.Name != null) {
|
|
1602
1143
|
contents.Name = __expectString(data.Name);
|
|
1603
1144
|
}
|
|
1604
|
-
return [2,
|
|
1145
|
+
return [2, contents];
|
|
1605
1146
|
}
|
|
1606
1147
|
});
|
|
1607
1148
|
}); };
|
|
1608
1149
|
var deserializeAws_restJson1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1609
|
-
var parsedOutput, _a,
|
|
1150
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1610
1151
|
var _c;
|
|
1611
1152
|
return __generator(this, function (_d) {
|
|
1612
1153
|
switch (_d.label) {
|
|
@@ -1631,14 +1172,14 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
1631
1172
|
case 5: throw _d.sent();
|
|
1632
1173
|
case 6:
|
|
1633
1174
|
parsedBody = parsedOutput.body;
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
$metadata: $metadata,
|
|
1175
|
+
throwDefaultError({
|
|
1176
|
+
output: output,
|
|
1177
|
+
parsedBody: parsedBody,
|
|
1178
|
+
exceptionCtor: __BaseException,
|
|
1179
|
+
errorCode: errorCode,
|
|
1640
1180
|
});
|
|
1641
|
-
|
|
1181
|
+
_d.label = 7;
|
|
1182
|
+
case 7: return [2];
|
|
1642
1183
|
}
|
|
1643
1184
|
});
|
|
1644
1185
|
}); };
|
|
@@ -1650,52 +1191,44 @@ export var deserializeAws_restJson1CreateConfigurationProfileCommand = function
|
|
|
1650
1191
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1651
1192
|
return [2, deserializeAws_restJson1CreateConfigurationProfileCommandError(output, context)];
|
|
1652
1193
|
}
|
|
1653
|
-
contents = {
|
|
1194
|
+
contents = map({
|
|
1654
1195
|
$metadata: deserializeMetadata(output),
|
|
1655
|
-
|
|
1656
|
-
Description: undefined,
|
|
1657
|
-
Id: undefined,
|
|
1658
|
-
LocationUri: undefined,
|
|
1659
|
-
Name: undefined,
|
|
1660
|
-
RetrievalRoleArn: undefined,
|
|
1661
|
-
Type: undefined,
|
|
1662
|
-
Validators: undefined,
|
|
1663
|
-
};
|
|
1196
|
+
});
|
|
1664
1197
|
_a = __expectNonNull;
|
|
1665
1198
|
_b = __expectObject;
|
|
1666
1199
|
return [4, parseBody(output.body, context)];
|
|
1667
1200
|
case 1:
|
|
1668
1201
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1669
|
-
if (data.ApplicationId
|
|
1202
|
+
if (data.ApplicationId != null) {
|
|
1670
1203
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1671
1204
|
}
|
|
1672
|
-
if (data.Description
|
|
1205
|
+
if (data.Description != null) {
|
|
1673
1206
|
contents.Description = __expectString(data.Description);
|
|
1674
1207
|
}
|
|
1675
|
-
if (data.Id
|
|
1208
|
+
if (data.Id != null) {
|
|
1676
1209
|
contents.Id = __expectString(data.Id);
|
|
1677
1210
|
}
|
|
1678
|
-
if (data.LocationUri
|
|
1211
|
+
if (data.LocationUri != null) {
|
|
1679
1212
|
contents.LocationUri = __expectString(data.LocationUri);
|
|
1680
1213
|
}
|
|
1681
|
-
if (data.Name
|
|
1214
|
+
if (data.Name != null) {
|
|
1682
1215
|
contents.Name = __expectString(data.Name);
|
|
1683
1216
|
}
|
|
1684
|
-
if (data.RetrievalRoleArn
|
|
1217
|
+
if (data.RetrievalRoleArn != null) {
|
|
1685
1218
|
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
1686
1219
|
}
|
|
1687
|
-
if (data.Type
|
|
1220
|
+
if (data.Type != null) {
|
|
1688
1221
|
contents.Type = __expectString(data.Type);
|
|
1689
1222
|
}
|
|
1690
|
-
if (data.Validators
|
|
1223
|
+
if (data.Validators != null) {
|
|
1691
1224
|
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
1692
1225
|
}
|
|
1693
|
-
return [2,
|
|
1226
|
+
return [2, contents];
|
|
1694
1227
|
}
|
|
1695
1228
|
});
|
|
1696
1229
|
}); };
|
|
1697
1230
|
var deserializeAws_restJson1CreateConfigurationProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1698
|
-
var parsedOutput, _a,
|
|
1231
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1699
1232
|
var _c;
|
|
1700
1233
|
return __generator(this, function (_d) {
|
|
1701
1234
|
switch (_d.label) {
|
|
@@ -1724,14 +1257,14 @@ var deserializeAws_restJson1CreateConfigurationProfileCommandError = function (o
|
|
|
1724
1257
|
case 7: throw _d.sent();
|
|
1725
1258
|
case 8:
|
|
1726
1259
|
parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
$metadata: $metadata,
|
|
1260
|
+
throwDefaultError({
|
|
1261
|
+
output: output,
|
|
1262
|
+
parsedBody: parsedBody,
|
|
1263
|
+
exceptionCtor: __BaseException,
|
|
1264
|
+
errorCode: errorCode,
|
|
1733
1265
|
});
|
|
1734
|
-
|
|
1266
|
+
_d.label = 9;
|
|
1267
|
+
case 9: return [2];
|
|
1735
1268
|
}
|
|
1736
1269
|
});
|
|
1737
1270
|
}); };
|
|
@@ -1743,52 +1276,44 @@ export var deserializeAws_restJson1CreateDeploymentStrategyCommand = function (o
|
|
|
1743
1276
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1744
1277
|
return [2, deserializeAws_restJson1CreateDeploymentStrategyCommandError(output, context)];
|
|
1745
1278
|
}
|
|
1746
|
-
contents = {
|
|
1279
|
+
contents = map({
|
|
1747
1280
|
$metadata: deserializeMetadata(output),
|
|
1748
|
-
|
|
1749
|
-
Description: undefined,
|
|
1750
|
-
FinalBakeTimeInMinutes: undefined,
|
|
1751
|
-
GrowthFactor: undefined,
|
|
1752
|
-
GrowthType: undefined,
|
|
1753
|
-
Id: undefined,
|
|
1754
|
-
Name: undefined,
|
|
1755
|
-
ReplicateTo: undefined,
|
|
1756
|
-
};
|
|
1281
|
+
});
|
|
1757
1282
|
_a = __expectNonNull;
|
|
1758
1283
|
_b = __expectObject;
|
|
1759
1284
|
return [4, parseBody(output.body, context)];
|
|
1760
1285
|
case 1:
|
|
1761
1286
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1762
|
-
if (data.DeploymentDurationInMinutes
|
|
1287
|
+
if (data.DeploymentDurationInMinutes != null) {
|
|
1763
1288
|
contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes);
|
|
1764
1289
|
}
|
|
1765
|
-
if (data.Description
|
|
1290
|
+
if (data.Description != null) {
|
|
1766
1291
|
contents.Description = __expectString(data.Description);
|
|
1767
1292
|
}
|
|
1768
|
-
if (data.FinalBakeTimeInMinutes
|
|
1293
|
+
if (data.FinalBakeTimeInMinutes != null) {
|
|
1769
1294
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
1770
1295
|
}
|
|
1771
|
-
if (data.GrowthFactor
|
|
1296
|
+
if (data.GrowthFactor != null) {
|
|
1772
1297
|
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
1773
1298
|
}
|
|
1774
|
-
if (data.GrowthType
|
|
1299
|
+
if (data.GrowthType != null) {
|
|
1775
1300
|
contents.GrowthType = __expectString(data.GrowthType);
|
|
1776
1301
|
}
|
|
1777
|
-
if (data.Id
|
|
1302
|
+
if (data.Id != null) {
|
|
1778
1303
|
contents.Id = __expectString(data.Id);
|
|
1779
1304
|
}
|
|
1780
|
-
if (data.Name
|
|
1305
|
+
if (data.Name != null) {
|
|
1781
1306
|
contents.Name = __expectString(data.Name);
|
|
1782
1307
|
}
|
|
1783
|
-
if (data.ReplicateTo
|
|
1308
|
+
if (data.ReplicateTo != null) {
|
|
1784
1309
|
contents.ReplicateTo = __expectString(data.ReplicateTo);
|
|
1785
1310
|
}
|
|
1786
|
-
return [2,
|
|
1311
|
+
return [2, contents];
|
|
1787
1312
|
}
|
|
1788
1313
|
});
|
|
1789
1314
|
}); };
|
|
1790
1315
|
var deserializeAws_restJson1CreateDeploymentStrategyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1791
|
-
var parsedOutput, _a,
|
|
1316
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1792
1317
|
var _c;
|
|
1793
1318
|
return __generator(this, function (_d) {
|
|
1794
1319
|
switch (_d.label) {
|
|
@@ -1813,14 +1338,14 @@ var deserializeAws_restJson1CreateDeploymentStrategyCommandError = function (out
|
|
|
1813
1338
|
case 5: throw _d.sent();
|
|
1814
1339
|
case 6:
|
|
1815
1340
|
parsedBody = parsedOutput.body;
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
$metadata: $metadata,
|
|
1341
|
+
throwDefaultError({
|
|
1342
|
+
output: output,
|
|
1343
|
+
parsedBody: parsedBody,
|
|
1344
|
+
exceptionCtor: __BaseException,
|
|
1345
|
+
errorCode: errorCode,
|
|
1822
1346
|
});
|
|
1823
|
-
|
|
1347
|
+
_d.label = 7;
|
|
1348
|
+
case 7: return [2];
|
|
1824
1349
|
}
|
|
1825
1350
|
});
|
|
1826
1351
|
}); };
|
|
@@ -1832,44 +1357,38 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
|
|
|
1832
1357
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1833
1358
|
return [2, deserializeAws_restJson1CreateEnvironmentCommandError(output, context)];
|
|
1834
1359
|
}
|
|
1835
|
-
contents = {
|
|
1360
|
+
contents = map({
|
|
1836
1361
|
$metadata: deserializeMetadata(output),
|
|
1837
|
-
|
|
1838
|
-
Description: undefined,
|
|
1839
|
-
Id: undefined,
|
|
1840
|
-
Monitors: undefined,
|
|
1841
|
-
Name: undefined,
|
|
1842
|
-
State: undefined,
|
|
1843
|
-
};
|
|
1362
|
+
});
|
|
1844
1363
|
_a = __expectNonNull;
|
|
1845
1364
|
_b = __expectObject;
|
|
1846
1365
|
return [4, parseBody(output.body, context)];
|
|
1847
1366
|
case 1:
|
|
1848
1367
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1849
|
-
if (data.ApplicationId
|
|
1368
|
+
if (data.ApplicationId != null) {
|
|
1850
1369
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1851
1370
|
}
|
|
1852
|
-
if (data.Description
|
|
1371
|
+
if (data.Description != null) {
|
|
1853
1372
|
contents.Description = __expectString(data.Description);
|
|
1854
1373
|
}
|
|
1855
|
-
if (data.Id
|
|
1374
|
+
if (data.Id != null) {
|
|
1856
1375
|
contents.Id = __expectString(data.Id);
|
|
1857
1376
|
}
|
|
1858
|
-
if (data.Monitors
|
|
1377
|
+
if (data.Monitors != null) {
|
|
1859
1378
|
contents.Monitors = deserializeAws_restJson1MonitorList(data.Monitors, context);
|
|
1860
1379
|
}
|
|
1861
|
-
if (data.Name
|
|
1380
|
+
if (data.Name != null) {
|
|
1862
1381
|
contents.Name = __expectString(data.Name);
|
|
1863
1382
|
}
|
|
1864
|
-
if (data.State
|
|
1383
|
+
if (data.State != null) {
|
|
1865
1384
|
contents.State = __expectString(data.State);
|
|
1866
1385
|
}
|
|
1867
|
-
return [2,
|
|
1386
|
+
return [2, contents];
|
|
1868
1387
|
}
|
|
1869
1388
|
});
|
|
1870
1389
|
}); };
|
|
1871
1390
|
var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1872
|
-
var parsedOutput, _a,
|
|
1391
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1873
1392
|
var _c;
|
|
1874
1393
|
return __generator(this, function (_d) {
|
|
1875
1394
|
switch (_d.label) {
|
|
@@ -1898,14 +1417,14 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
1898
1417
|
case 7: throw _d.sent();
|
|
1899
1418
|
case 8:
|
|
1900
1419
|
parsedBody = parsedOutput.body;
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
$metadata: $metadata,
|
|
1420
|
+
throwDefaultError({
|
|
1421
|
+
output: output,
|
|
1422
|
+
parsedBody: parsedBody,
|
|
1423
|
+
exceptionCtor: __BaseException,
|
|
1424
|
+
errorCode: errorCode,
|
|
1907
1425
|
});
|
|
1908
|
-
|
|
1426
|
+
_d.label = 9;
|
|
1427
|
+
case 9: return [2];
|
|
1909
1428
|
}
|
|
1910
1429
|
});
|
|
1911
1430
|
}); };
|
|
@@ -1917,48 +1436,41 @@ export var deserializeAws_restJson1CreateExtensionCommand = function (output, co
|
|
|
1917
1436
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1918
1437
|
return [2, deserializeAws_restJson1CreateExtensionCommandError(output, context)];
|
|
1919
1438
|
}
|
|
1920
|
-
contents = {
|
|
1439
|
+
contents = map({
|
|
1921
1440
|
$metadata: deserializeMetadata(output),
|
|
1922
|
-
|
|
1923
|
-
Arn: undefined,
|
|
1924
|
-
Description: undefined,
|
|
1925
|
-
Id: undefined,
|
|
1926
|
-
Name: undefined,
|
|
1927
|
-
Parameters: undefined,
|
|
1928
|
-
VersionNumber: undefined,
|
|
1929
|
-
};
|
|
1441
|
+
});
|
|
1930
1442
|
_a = __expectNonNull;
|
|
1931
1443
|
_b = __expectObject;
|
|
1932
1444
|
return [4, parseBody(output.body, context)];
|
|
1933
1445
|
case 1:
|
|
1934
1446
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1935
|
-
if (data.Actions
|
|
1447
|
+
if (data.Actions != null) {
|
|
1936
1448
|
contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
|
|
1937
1449
|
}
|
|
1938
|
-
if (data.Arn
|
|
1450
|
+
if (data.Arn != null) {
|
|
1939
1451
|
contents.Arn = __expectString(data.Arn);
|
|
1940
1452
|
}
|
|
1941
|
-
if (data.Description
|
|
1453
|
+
if (data.Description != null) {
|
|
1942
1454
|
contents.Description = __expectString(data.Description);
|
|
1943
1455
|
}
|
|
1944
|
-
if (data.Id
|
|
1456
|
+
if (data.Id != null) {
|
|
1945
1457
|
contents.Id = __expectString(data.Id);
|
|
1946
1458
|
}
|
|
1947
|
-
if (data.Name
|
|
1459
|
+
if (data.Name != null) {
|
|
1948
1460
|
contents.Name = __expectString(data.Name);
|
|
1949
1461
|
}
|
|
1950
|
-
if (data.Parameters
|
|
1462
|
+
if (data.Parameters != null) {
|
|
1951
1463
|
contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
|
|
1952
1464
|
}
|
|
1953
|
-
if (data.VersionNumber
|
|
1465
|
+
if (data.VersionNumber != null) {
|
|
1954
1466
|
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
1955
1467
|
}
|
|
1956
|
-
return [2,
|
|
1468
|
+
return [2, contents];
|
|
1957
1469
|
}
|
|
1958
1470
|
});
|
|
1959
1471
|
}); };
|
|
1960
1472
|
var deserializeAws_restJson1CreateExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1961
|
-
var parsedOutput, _a,
|
|
1473
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1962
1474
|
var _c;
|
|
1963
1475
|
return __generator(this, function (_d) {
|
|
1964
1476
|
switch (_d.label) {
|
|
@@ -1991,14 +1503,14 @@ var deserializeAws_restJson1CreateExtensionCommandError = function (output, cont
|
|
|
1991
1503
|
case 9: throw _d.sent();
|
|
1992
1504
|
case 10:
|
|
1993
1505
|
parsedBody = parsedOutput.body;
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
$metadata: $metadata,
|
|
1506
|
+
throwDefaultError({
|
|
1507
|
+
output: output,
|
|
1508
|
+
parsedBody: parsedBody,
|
|
1509
|
+
exceptionCtor: __BaseException,
|
|
1510
|
+
errorCode: errorCode,
|
|
2000
1511
|
});
|
|
2001
|
-
|
|
1512
|
+
_d.label = 11;
|
|
1513
|
+
case 11: return [2];
|
|
2002
1514
|
}
|
|
2003
1515
|
});
|
|
2004
1516
|
}); };
|
|
@@ -2010,44 +1522,38 @@ export var deserializeAws_restJson1CreateExtensionAssociationCommand = function
|
|
|
2010
1522
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2011
1523
|
return [2, deserializeAws_restJson1CreateExtensionAssociationCommandError(output, context)];
|
|
2012
1524
|
}
|
|
2013
|
-
contents = {
|
|
1525
|
+
contents = map({
|
|
2014
1526
|
$metadata: deserializeMetadata(output),
|
|
2015
|
-
|
|
2016
|
-
ExtensionArn: undefined,
|
|
2017
|
-
ExtensionVersionNumber: undefined,
|
|
2018
|
-
Id: undefined,
|
|
2019
|
-
Parameters: undefined,
|
|
2020
|
-
ResourceArn: undefined,
|
|
2021
|
-
};
|
|
1527
|
+
});
|
|
2022
1528
|
_a = __expectNonNull;
|
|
2023
1529
|
_b = __expectObject;
|
|
2024
1530
|
return [4, parseBody(output.body, context)];
|
|
2025
1531
|
case 1:
|
|
2026
1532
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2027
|
-
if (data.Arn
|
|
1533
|
+
if (data.Arn != null) {
|
|
2028
1534
|
contents.Arn = __expectString(data.Arn);
|
|
2029
1535
|
}
|
|
2030
|
-
if (data.ExtensionArn
|
|
1536
|
+
if (data.ExtensionArn != null) {
|
|
2031
1537
|
contents.ExtensionArn = __expectString(data.ExtensionArn);
|
|
2032
1538
|
}
|
|
2033
|
-
if (data.ExtensionVersionNumber
|
|
1539
|
+
if (data.ExtensionVersionNumber != null) {
|
|
2034
1540
|
contents.ExtensionVersionNumber = __expectInt32(data.ExtensionVersionNumber);
|
|
2035
1541
|
}
|
|
2036
|
-
if (data.Id
|
|
1542
|
+
if (data.Id != null) {
|
|
2037
1543
|
contents.Id = __expectString(data.Id);
|
|
2038
1544
|
}
|
|
2039
|
-
if (data.Parameters
|
|
1545
|
+
if (data.Parameters != null) {
|
|
2040
1546
|
contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
|
|
2041
1547
|
}
|
|
2042
|
-
if (data.ResourceArn
|
|
1548
|
+
if (data.ResourceArn != null) {
|
|
2043
1549
|
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
2044
1550
|
}
|
|
2045
|
-
return [2,
|
|
1551
|
+
return [2, contents];
|
|
2046
1552
|
}
|
|
2047
1553
|
});
|
|
2048
1554
|
}); };
|
|
2049
1555
|
var deserializeAws_restJson1CreateExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2050
|
-
var parsedOutput, _a,
|
|
1556
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2051
1557
|
var _c;
|
|
2052
1558
|
return __generator(this, function (_d) {
|
|
2053
1559
|
switch (_d.label) {
|
|
@@ -2080,14 +1586,14 @@ var deserializeAws_restJson1CreateExtensionAssociationCommandError = function (o
|
|
|
2080
1586
|
case 9: throw _d.sent();
|
|
2081
1587
|
case 10:
|
|
2082
1588
|
parsedBody = parsedOutput.body;
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
$metadata: $metadata,
|
|
1589
|
+
throwDefaultError({
|
|
1590
|
+
output: output,
|
|
1591
|
+
parsedBody: parsedBody,
|
|
1592
|
+
exceptionCtor: __BaseException,
|
|
1593
|
+
errorCode: errorCode,
|
|
2089
1594
|
});
|
|
2090
|
-
|
|
1595
|
+
_d.label = 11;
|
|
1596
|
+
case 11: return [2];
|
|
2091
1597
|
}
|
|
2092
1598
|
});
|
|
2093
1599
|
}); };
|
|
@@ -2099,40 +1605,27 @@ export var deserializeAws_restJson1CreateHostedConfigurationVersionCommand = fun
|
|
|
2099
1605
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2100
1606
|
return [2, deserializeAws_restJson1CreateHostedConfigurationVersionCommandError(output, context)];
|
|
2101
1607
|
}
|
|
2102
|
-
contents = {
|
|
1608
|
+
contents = map({
|
|
2103
1609
|
$metadata: deserializeMetadata(output),
|
|
2104
|
-
ApplicationId:
|
|
2105
|
-
ConfigurationProfileId:
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
}
|
|
2114
|
-
if (output.headers["configuration-profile-id"] !== undefined) {
|
|
2115
|
-
contents.ConfigurationProfileId = output.headers["configuration-profile-id"];
|
|
2116
|
-
}
|
|
2117
|
-
if (output.headers["version-number"] !== undefined) {
|
|
2118
|
-
contents.VersionNumber = __strictParseInt32(output.headers["version-number"]);
|
|
2119
|
-
}
|
|
2120
|
-
if (output.headers["description"] !== undefined) {
|
|
2121
|
-
contents.Description = output.headers["description"];
|
|
2122
|
-
}
|
|
2123
|
-
if (output.headers["content-type"] !== undefined) {
|
|
2124
|
-
contents.ContentType = output.headers["content-type"];
|
|
2125
|
-
}
|
|
1610
|
+
ApplicationId: [, output.headers["application-id"]],
|
|
1611
|
+
ConfigurationProfileId: [, output.headers["configuration-profile-id"]],
|
|
1612
|
+
VersionNumber: [
|
|
1613
|
+
function () { return void 0 !== output.headers["version-number"]; },
|
|
1614
|
+
function () { return __strictParseInt32(output.headers["version-number"]); },
|
|
1615
|
+
],
|
|
1616
|
+
Description: [, output.headers["description"]],
|
|
1617
|
+
ContentType: [, output.headers["content-type"]],
|
|
1618
|
+
});
|
|
2126
1619
|
return [4, collectBody(output.body, context)];
|
|
2127
1620
|
case 1:
|
|
2128
1621
|
data = _a.sent();
|
|
2129
1622
|
contents.Content = data;
|
|
2130
|
-
return [2,
|
|
1623
|
+
return [2, contents];
|
|
2131
1624
|
}
|
|
2132
1625
|
});
|
|
2133
1626
|
}); };
|
|
2134
1627
|
var deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2135
|
-
var parsedOutput, _a,
|
|
1628
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2136
1629
|
var _c;
|
|
2137
1630
|
return __generator(this, function (_d) {
|
|
2138
1631
|
switch (_d.label) {
|
|
@@ -2173,14 +1666,14 @@ var deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = funct
|
|
|
2173
1666
|
case 13: throw _d.sent();
|
|
2174
1667
|
case 14:
|
|
2175
1668
|
parsedBody = parsedOutput.body;
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
$metadata: $metadata,
|
|
1669
|
+
throwDefaultError({
|
|
1670
|
+
output: output,
|
|
1671
|
+
parsedBody: parsedBody,
|
|
1672
|
+
exceptionCtor: __BaseException,
|
|
1673
|
+
errorCode: errorCode,
|
|
2182
1674
|
});
|
|
2183
|
-
|
|
1675
|
+
_d.label = 15;
|
|
1676
|
+
case 15: return [2];
|
|
2184
1677
|
}
|
|
2185
1678
|
});
|
|
2186
1679
|
}); };
|
|
@@ -2192,18 +1685,18 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
|
|
|
2192
1685
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2193
1686
|
return [2, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
|
|
2194
1687
|
}
|
|
2195
|
-
contents = {
|
|
1688
|
+
contents = map({
|
|
2196
1689
|
$metadata: deserializeMetadata(output),
|
|
2197
|
-
};
|
|
1690
|
+
});
|
|
2198
1691
|
return [4, collectBody(output.body, context)];
|
|
2199
1692
|
case 1:
|
|
2200
1693
|
_a.sent();
|
|
2201
|
-
return [2,
|
|
1694
|
+
return [2, contents];
|
|
2202
1695
|
}
|
|
2203
1696
|
});
|
|
2204
1697
|
}); };
|
|
2205
1698
|
var deserializeAws_restJson1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2206
|
-
var parsedOutput, _a,
|
|
1699
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2207
1700
|
var _c;
|
|
2208
1701
|
return __generator(this, function (_d) {
|
|
2209
1702
|
switch (_d.label) {
|
|
@@ -2232,14 +1725,14 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
2232
1725
|
case 7: throw _d.sent();
|
|
2233
1726
|
case 8:
|
|
2234
1727
|
parsedBody = parsedOutput.body;
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
$metadata: $metadata,
|
|
1728
|
+
throwDefaultError({
|
|
1729
|
+
output: output,
|
|
1730
|
+
parsedBody: parsedBody,
|
|
1731
|
+
exceptionCtor: __BaseException,
|
|
1732
|
+
errorCode: errorCode,
|
|
2241
1733
|
});
|
|
2242
|
-
|
|
1734
|
+
_d.label = 9;
|
|
1735
|
+
case 9: return [2];
|
|
2243
1736
|
}
|
|
2244
1737
|
});
|
|
2245
1738
|
}); };
|
|
@@ -2251,18 +1744,18 @@ export var deserializeAws_restJson1DeleteConfigurationProfileCommand = function
|
|
|
2251
1744
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2252
1745
|
return [2, deserializeAws_restJson1DeleteConfigurationProfileCommandError(output, context)];
|
|
2253
1746
|
}
|
|
2254
|
-
contents = {
|
|
1747
|
+
contents = map({
|
|
2255
1748
|
$metadata: deserializeMetadata(output),
|
|
2256
|
-
};
|
|
1749
|
+
});
|
|
2257
1750
|
return [4, collectBody(output.body, context)];
|
|
2258
1751
|
case 1:
|
|
2259
1752
|
_a.sent();
|
|
2260
|
-
return [2,
|
|
1753
|
+
return [2, contents];
|
|
2261
1754
|
}
|
|
2262
1755
|
});
|
|
2263
1756
|
}); };
|
|
2264
1757
|
var deserializeAws_restJson1DeleteConfigurationProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2265
|
-
var parsedOutput, _a,
|
|
1758
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2266
1759
|
var _c;
|
|
2267
1760
|
return __generator(this, function (_d) {
|
|
2268
1761
|
switch (_d.label) {
|
|
@@ -2295,14 +1788,14 @@ var deserializeAws_restJson1DeleteConfigurationProfileCommandError = function (o
|
|
|
2295
1788
|
case 9: throw _d.sent();
|
|
2296
1789
|
case 10:
|
|
2297
1790
|
parsedBody = parsedOutput.body;
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
$metadata: $metadata,
|
|
1791
|
+
throwDefaultError({
|
|
1792
|
+
output: output,
|
|
1793
|
+
parsedBody: parsedBody,
|
|
1794
|
+
exceptionCtor: __BaseException,
|
|
1795
|
+
errorCode: errorCode,
|
|
2304
1796
|
});
|
|
2305
|
-
|
|
1797
|
+
_d.label = 11;
|
|
1798
|
+
case 11: return [2];
|
|
2306
1799
|
}
|
|
2307
1800
|
});
|
|
2308
1801
|
}); };
|
|
@@ -2314,18 +1807,18 @@ export var deserializeAws_restJson1DeleteDeploymentStrategyCommand = function (o
|
|
|
2314
1807
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2315
1808
|
return [2, deserializeAws_restJson1DeleteDeploymentStrategyCommandError(output, context)];
|
|
2316
1809
|
}
|
|
2317
|
-
contents = {
|
|
1810
|
+
contents = map({
|
|
2318
1811
|
$metadata: deserializeMetadata(output),
|
|
2319
|
-
};
|
|
1812
|
+
});
|
|
2320
1813
|
return [4, collectBody(output.body, context)];
|
|
2321
1814
|
case 1:
|
|
2322
1815
|
_a.sent();
|
|
2323
|
-
return [2,
|
|
1816
|
+
return [2, contents];
|
|
2324
1817
|
}
|
|
2325
1818
|
});
|
|
2326
1819
|
}); };
|
|
2327
1820
|
var deserializeAws_restJson1DeleteDeploymentStrategyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2328
|
-
var parsedOutput, _a,
|
|
1821
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2329
1822
|
var _c;
|
|
2330
1823
|
return __generator(this, function (_d) {
|
|
2331
1824
|
switch (_d.label) {
|
|
@@ -2354,14 +1847,14 @@ var deserializeAws_restJson1DeleteDeploymentStrategyCommandError = function (out
|
|
|
2354
1847
|
case 7: throw _d.sent();
|
|
2355
1848
|
case 8:
|
|
2356
1849
|
parsedBody = parsedOutput.body;
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
$metadata: $metadata,
|
|
1850
|
+
throwDefaultError({
|
|
1851
|
+
output: output,
|
|
1852
|
+
parsedBody: parsedBody,
|
|
1853
|
+
exceptionCtor: __BaseException,
|
|
1854
|
+
errorCode: errorCode,
|
|
2363
1855
|
});
|
|
2364
|
-
|
|
1856
|
+
_d.label = 9;
|
|
1857
|
+
case 9: return [2];
|
|
2365
1858
|
}
|
|
2366
1859
|
});
|
|
2367
1860
|
}); };
|
|
@@ -2373,18 +1866,18 @@ export var deserializeAws_restJson1DeleteEnvironmentCommand = function (output,
|
|
|
2373
1866
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2374
1867
|
return [2, deserializeAws_restJson1DeleteEnvironmentCommandError(output, context)];
|
|
2375
1868
|
}
|
|
2376
|
-
contents = {
|
|
1869
|
+
contents = map({
|
|
2377
1870
|
$metadata: deserializeMetadata(output),
|
|
2378
|
-
};
|
|
1871
|
+
});
|
|
2379
1872
|
return [4, collectBody(output.body, context)];
|
|
2380
1873
|
case 1:
|
|
2381
1874
|
_a.sent();
|
|
2382
|
-
return [2,
|
|
1875
|
+
return [2, contents];
|
|
2383
1876
|
}
|
|
2384
1877
|
});
|
|
2385
1878
|
}); };
|
|
2386
1879
|
var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2387
|
-
var parsedOutput, _a,
|
|
1880
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2388
1881
|
var _c;
|
|
2389
1882
|
return __generator(this, function (_d) {
|
|
2390
1883
|
switch (_d.label) {
|
|
@@ -2417,14 +1910,14 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
2417
1910
|
case 9: throw _d.sent();
|
|
2418
1911
|
case 10:
|
|
2419
1912
|
parsedBody = parsedOutput.body;
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
$metadata: $metadata,
|
|
1913
|
+
throwDefaultError({
|
|
1914
|
+
output: output,
|
|
1915
|
+
parsedBody: parsedBody,
|
|
1916
|
+
exceptionCtor: __BaseException,
|
|
1917
|
+
errorCode: errorCode,
|
|
2426
1918
|
});
|
|
2427
|
-
|
|
1919
|
+
_d.label = 11;
|
|
1920
|
+
case 11: return [2];
|
|
2428
1921
|
}
|
|
2429
1922
|
});
|
|
2430
1923
|
}); };
|
|
@@ -2436,18 +1929,18 @@ export var deserializeAws_restJson1DeleteExtensionCommand = function (output, co
|
|
|
2436
1929
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2437
1930
|
return [2, deserializeAws_restJson1DeleteExtensionCommandError(output, context)];
|
|
2438
1931
|
}
|
|
2439
|
-
contents = {
|
|
1932
|
+
contents = map({
|
|
2440
1933
|
$metadata: deserializeMetadata(output),
|
|
2441
|
-
};
|
|
1934
|
+
});
|
|
2442
1935
|
return [4, collectBody(output.body, context)];
|
|
2443
1936
|
case 1:
|
|
2444
1937
|
_a.sent();
|
|
2445
|
-
return [2,
|
|
1938
|
+
return [2, contents];
|
|
2446
1939
|
}
|
|
2447
1940
|
});
|
|
2448
1941
|
}); };
|
|
2449
1942
|
var deserializeAws_restJson1DeleteExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2450
|
-
var parsedOutput, _a,
|
|
1943
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2451
1944
|
var _c;
|
|
2452
1945
|
return __generator(this, function (_d) {
|
|
2453
1946
|
switch (_d.label) {
|
|
@@ -2476,14 +1969,14 @@ var deserializeAws_restJson1DeleteExtensionCommandError = function (output, cont
|
|
|
2476
1969
|
case 7: throw _d.sent();
|
|
2477
1970
|
case 8:
|
|
2478
1971
|
parsedBody = parsedOutput.body;
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
$metadata: $metadata,
|
|
1972
|
+
throwDefaultError({
|
|
1973
|
+
output: output,
|
|
1974
|
+
parsedBody: parsedBody,
|
|
1975
|
+
exceptionCtor: __BaseException,
|
|
1976
|
+
errorCode: errorCode,
|
|
2485
1977
|
});
|
|
2486
|
-
|
|
1978
|
+
_d.label = 9;
|
|
1979
|
+
case 9: return [2];
|
|
2487
1980
|
}
|
|
2488
1981
|
});
|
|
2489
1982
|
}); };
|
|
@@ -2495,18 +1988,18 @@ export var deserializeAws_restJson1DeleteExtensionAssociationCommand = function
|
|
|
2495
1988
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2496
1989
|
return [2, deserializeAws_restJson1DeleteExtensionAssociationCommandError(output, context)];
|
|
2497
1990
|
}
|
|
2498
|
-
contents = {
|
|
1991
|
+
contents = map({
|
|
2499
1992
|
$metadata: deserializeMetadata(output),
|
|
2500
|
-
};
|
|
1993
|
+
});
|
|
2501
1994
|
return [4, collectBody(output.body, context)];
|
|
2502
1995
|
case 1:
|
|
2503
1996
|
_a.sent();
|
|
2504
|
-
return [2,
|
|
1997
|
+
return [2, contents];
|
|
2505
1998
|
}
|
|
2506
1999
|
});
|
|
2507
2000
|
}); };
|
|
2508
2001
|
var deserializeAws_restJson1DeleteExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2509
|
-
var parsedOutput, _a,
|
|
2002
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2510
2003
|
var _c;
|
|
2511
2004
|
return __generator(this, function (_d) {
|
|
2512
2005
|
switch (_d.label) {
|
|
@@ -2535,14 +2028,14 @@ var deserializeAws_restJson1DeleteExtensionAssociationCommandError = function (o
|
|
|
2535
2028
|
case 7: throw _d.sent();
|
|
2536
2029
|
case 8:
|
|
2537
2030
|
parsedBody = parsedOutput.body;
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
$metadata: $metadata,
|
|
2031
|
+
throwDefaultError({
|
|
2032
|
+
output: output,
|
|
2033
|
+
parsedBody: parsedBody,
|
|
2034
|
+
exceptionCtor: __BaseException,
|
|
2035
|
+
errorCode: errorCode,
|
|
2544
2036
|
});
|
|
2545
|
-
|
|
2037
|
+
_d.label = 9;
|
|
2038
|
+
case 9: return [2];
|
|
2546
2039
|
}
|
|
2547
2040
|
});
|
|
2548
2041
|
}); };
|
|
@@ -2554,18 +2047,18 @@ export var deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = fun
|
|
|
2554
2047
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2555
2048
|
return [2, deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError(output, context)];
|
|
2556
2049
|
}
|
|
2557
|
-
contents = {
|
|
2050
|
+
contents = map({
|
|
2558
2051
|
$metadata: deserializeMetadata(output),
|
|
2559
|
-
};
|
|
2052
|
+
});
|
|
2560
2053
|
return [4, collectBody(output.body, context)];
|
|
2561
2054
|
case 1:
|
|
2562
2055
|
_a.sent();
|
|
2563
|
-
return [2,
|
|
2056
|
+
return [2, contents];
|
|
2564
2057
|
}
|
|
2565
2058
|
});
|
|
2566
2059
|
}); };
|
|
2567
2060
|
var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2568
|
-
var parsedOutput, _a,
|
|
2061
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2569
2062
|
var _c;
|
|
2570
2063
|
return __generator(this, function (_d) {
|
|
2571
2064
|
switch (_d.label) {
|
|
@@ -2594,14 +2087,14 @@ var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = funct
|
|
|
2594
2087
|
case 7: throw _d.sent();
|
|
2595
2088
|
case 8:
|
|
2596
2089
|
parsedBody = parsedOutput.body;
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
$metadata: $metadata,
|
|
2090
|
+
throwDefaultError({
|
|
2091
|
+
output: output,
|
|
2092
|
+
parsedBody: parsedBody,
|
|
2093
|
+
exceptionCtor: __BaseException,
|
|
2094
|
+
errorCode: errorCode,
|
|
2603
2095
|
});
|
|
2604
|
-
|
|
2096
|
+
_d.label = 9;
|
|
2097
|
+
case 9: return [2];
|
|
2605
2098
|
}
|
|
2606
2099
|
});
|
|
2607
2100
|
}); };
|
|
@@ -2613,32 +2106,29 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
|
|
|
2613
2106
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2614
2107
|
return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
|
|
2615
2108
|
}
|
|
2616
|
-
contents = {
|
|
2109
|
+
contents = map({
|
|
2617
2110
|
$metadata: deserializeMetadata(output),
|
|
2618
|
-
|
|
2619
|
-
Id: undefined,
|
|
2620
|
-
Name: undefined,
|
|
2621
|
-
};
|
|
2111
|
+
});
|
|
2622
2112
|
_a = __expectNonNull;
|
|
2623
2113
|
_b = __expectObject;
|
|
2624
2114
|
return [4, parseBody(output.body, context)];
|
|
2625
2115
|
case 1:
|
|
2626
2116
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2627
|
-
if (data.Description
|
|
2117
|
+
if (data.Description != null) {
|
|
2628
2118
|
contents.Description = __expectString(data.Description);
|
|
2629
2119
|
}
|
|
2630
|
-
if (data.Id
|
|
2120
|
+
if (data.Id != null) {
|
|
2631
2121
|
contents.Id = __expectString(data.Id);
|
|
2632
2122
|
}
|
|
2633
|
-
if (data.Name
|
|
2123
|
+
if (data.Name != null) {
|
|
2634
2124
|
contents.Name = __expectString(data.Name);
|
|
2635
2125
|
}
|
|
2636
|
-
return [2,
|
|
2126
|
+
return [2, contents];
|
|
2637
2127
|
}
|
|
2638
2128
|
});
|
|
2639
2129
|
}); };
|
|
2640
2130
|
var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2641
|
-
var parsedOutput, _a,
|
|
2131
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2642
2132
|
var _c;
|
|
2643
2133
|
return __generator(this, function (_d) {
|
|
2644
2134
|
switch (_d.label) {
|
|
@@ -2667,14 +2157,14 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
2667
2157
|
case 7: throw _d.sent();
|
|
2668
2158
|
case 8:
|
|
2669
2159
|
parsedBody = parsedOutput.body;
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
$metadata: $metadata,
|
|
2160
|
+
throwDefaultError({
|
|
2161
|
+
output: output,
|
|
2162
|
+
parsedBody: parsedBody,
|
|
2163
|
+
exceptionCtor: __BaseException,
|
|
2164
|
+
errorCode: errorCode,
|
|
2676
2165
|
});
|
|
2677
|
-
|
|
2166
|
+
_d.label = 9;
|
|
2167
|
+
case 9: return [2];
|
|
2678
2168
|
}
|
|
2679
2169
|
});
|
|
2680
2170
|
}); };
|
|
@@ -2686,28 +2176,21 @@ export var deserializeAws_restJson1GetConfigurationCommand = function (output, c
|
|
|
2686
2176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2687
2177
|
return [2, deserializeAws_restJson1GetConfigurationCommandError(output, context)];
|
|
2688
2178
|
}
|
|
2689
|
-
contents = {
|
|
2179
|
+
contents = map({
|
|
2690
2180
|
$metadata: deserializeMetadata(output),
|
|
2691
|
-
ConfigurationVersion:
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
};
|
|
2695
|
-
if (output.headers["configuration-version"] !== undefined) {
|
|
2696
|
-
contents.ConfigurationVersion = output.headers["configuration-version"];
|
|
2697
|
-
}
|
|
2698
|
-
if (output.headers["content-type"] !== undefined) {
|
|
2699
|
-
contents.ContentType = output.headers["content-type"];
|
|
2700
|
-
}
|
|
2181
|
+
ConfigurationVersion: [, output.headers["configuration-version"]],
|
|
2182
|
+
ContentType: [, output.headers["content-type"]],
|
|
2183
|
+
});
|
|
2701
2184
|
return [4, collectBody(output.body, context)];
|
|
2702
2185
|
case 1:
|
|
2703
2186
|
data = _a.sent();
|
|
2704
2187
|
contents.Content = data;
|
|
2705
|
-
return [2,
|
|
2188
|
+
return [2, contents];
|
|
2706
2189
|
}
|
|
2707
2190
|
});
|
|
2708
2191
|
}); };
|
|
2709
2192
|
var deserializeAws_restJson1GetConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2710
|
-
var parsedOutput, _a,
|
|
2193
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2711
2194
|
var _c;
|
|
2712
2195
|
return __generator(this, function (_d) {
|
|
2713
2196
|
switch (_d.label) {
|
|
@@ -2736,14 +2219,14 @@ var deserializeAws_restJson1GetConfigurationCommandError = function (output, con
|
|
|
2736
2219
|
case 7: throw _d.sent();
|
|
2737
2220
|
case 8:
|
|
2738
2221
|
parsedBody = parsedOutput.body;
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
$metadata: $metadata,
|
|
2222
|
+
throwDefaultError({
|
|
2223
|
+
output: output,
|
|
2224
|
+
parsedBody: parsedBody,
|
|
2225
|
+
exceptionCtor: __BaseException,
|
|
2226
|
+
errorCode: errorCode,
|
|
2745
2227
|
});
|
|
2746
|
-
|
|
2228
|
+
_d.label = 9;
|
|
2229
|
+
case 9: return [2];
|
|
2747
2230
|
}
|
|
2748
2231
|
});
|
|
2749
2232
|
}); };
|
|
@@ -2755,52 +2238,44 @@ export var deserializeAws_restJson1GetConfigurationProfileCommand = function (ou
|
|
|
2755
2238
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2756
2239
|
return [2, deserializeAws_restJson1GetConfigurationProfileCommandError(output, context)];
|
|
2757
2240
|
}
|
|
2758
|
-
contents = {
|
|
2241
|
+
contents = map({
|
|
2759
2242
|
$metadata: deserializeMetadata(output),
|
|
2760
|
-
|
|
2761
|
-
Description: undefined,
|
|
2762
|
-
Id: undefined,
|
|
2763
|
-
LocationUri: undefined,
|
|
2764
|
-
Name: undefined,
|
|
2765
|
-
RetrievalRoleArn: undefined,
|
|
2766
|
-
Type: undefined,
|
|
2767
|
-
Validators: undefined,
|
|
2768
|
-
};
|
|
2243
|
+
});
|
|
2769
2244
|
_a = __expectNonNull;
|
|
2770
2245
|
_b = __expectObject;
|
|
2771
2246
|
return [4, parseBody(output.body, context)];
|
|
2772
2247
|
case 1:
|
|
2773
2248
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2774
|
-
if (data.ApplicationId
|
|
2249
|
+
if (data.ApplicationId != null) {
|
|
2775
2250
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2776
2251
|
}
|
|
2777
|
-
if (data.Description
|
|
2252
|
+
if (data.Description != null) {
|
|
2778
2253
|
contents.Description = __expectString(data.Description);
|
|
2779
2254
|
}
|
|
2780
|
-
if (data.Id
|
|
2255
|
+
if (data.Id != null) {
|
|
2781
2256
|
contents.Id = __expectString(data.Id);
|
|
2782
2257
|
}
|
|
2783
|
-
if (data.LocationUri
|
|
2258
|
+
if (data.LocationUri != null) {
|
|
2784
2259
|
contents.LocationUri = __expectString(data.LocationUri);
|
|
2785
2260
|
}
|
|
2786
|
-
if (data.Name
|
|
2261
|
+
if (data.Name != null) {
|
|
2787
2262
|
contents.Name = __expectString(data.Name);
|
|
2788
2263
|
}
|
|
2789
|
-
if (data.RetrievalRoleArn
|
|
2264
|
+
if (data.RetrievalRoleArn != null) {
|
|
2790
2265
|
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
2791
2266
|
}
|
|
2792
|
-
if (data.Type
|
|
2267
|
+
if (data.Type != null) {
|
|
2793
2268
|
contents.Type = __expectString(data.Type);
|
|
2794
2269
|
}
|
|
2795
|
-
if (data.Validators
|
|
2270
|
+
if (data.Validators != null) {
|
|
2796
2271
|
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
2797
2272
|
}
|
|
2798
|
-
return [2,
|
|
2273
|
+
return [2, contents];
|
|
2799
2274
|
}
|
|
2800
2275
|
});
|
|
2801
2276
|
}); };
|
|
2802
2277
|
var deserializeAws_restJson1GetConfigurationProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2803
|
-
var parsedOutput, _a,
|
|
2278
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2804
2279
|
var _c;
|
|
2805
2280
|
return __generator(this, function (_d) {
|
|
2806
2281
|
switch (_d.label) {
|
|
@@ -2829,14 +2304,14 @@ var deserializeAws_restJson1GetConfigurationProfileCommandError = function (outp
|
|
|
2829
2304
|
case 7: throw _d.sent();
|
|
2830
2305
|
case 8:
|
|
2831
2306
|
parsedBody = parsedOutput.body;
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
$metadata: $metadata,
|
|
2307
|
+
throwDefaultError({
|
|
2308
|
+
output: output,
|
|
2309
|
+
parsedBody: parsedBody,
|
|
2310
|
+
exceptionCtor: __BaseException,
|
|
2311
|
+
errorCode: errorCode,
|
|
2838
2312
|
});
|
|
2839
|
-
|
|
2313
|
+
_d.label = 9;
|
|
2314
|
+
case 9: return [2];
|
|
2840
2315
|
}
|
|
2841
2316
|
});
|
|
2842
2317
|
}); };
|
|
@@ -2848,96 +2323,77 @@ export var deserializeAws_restJson1GetDeploymentCommand = function (output, cont
|
|
|
2848
2323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2849
2324
|
return [2, deserializeAws_restJson1GetDeploymentCommandError(output, context)];
|
|
2850
2325
|
}
|
|
2851
|
-
contents = {
|
|
2326
|
+
contents = map({
|
|
2852
2327
|
$metadata: deserializeMetadata(output),
|
|
2853
|
-
|
|
2854
|
-
AppliedExtensions: undefined,
|
|
2855
|
-
CompletedAt: undefined,
|
|
2856
|
-
ConfigurationLocationUri: undefined,
|
|
2857
|
-
ConfigurationName: undefined,
|
|
2858
|
-
ConfigurationProfileId: undefined,
|
|
2859
|
-
ConfigurationVersion: undefined,
|
|
2860
|
-
DeploymentDurationInMinutes: undefined,
|
|
2861
|
-
DeploymentNumber: undefined,
|
|
2862
|
-
DeploymentStrategyId: undefined,
|
|
2863
|
-
Description: undefined,
|
|
2864
|
-
EnvironmentId: undefined,
|
|
2865
|
-
EventLog: undefined,
|
|
2866
|
-
FinalBakeTimeInMinutes: undefined,
|
|
2867
|
-
GrowthFactor: undefined,
|
|
2868
|
-
GrowthType: undefined,
|
|
2869
|
-
PercentageComplete: undefined,
|
|
2870
|
-
StartedAt: undefined,
|
|
2871
|
-
State: undefined,
|
|
2872
|
-
};
|
|
2328
|
+
});
|
|
2873
2329
|
_a = __expectNonNull;
|
|
2874
2330
|
_b = __expectObject;
|
|
2875
2331
|
return [4, parseBody(output.body, context)];
|
|
2876
2332
|
case 1:
|
|
2877
2333
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2878
|
-
if (data.ApplicationId
|
|
2334
|
+
if (data.ApplicationId != null) {
|
|
2879
2335
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2880
2336
|
}
|
|
2881
|
-
if (data.AppliedExtensions
|
|
2337
|
+
if (data.AppliedExtensions != null) {
|
|
2882
2338
|
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
2883
2339
|
}
|
|
2884
|
-
if (data.CompletedAt
|
|
2340
|
+
if (data.CompletedAt != null) {
|
|
2885
2341
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
2886
2342
|
}
|
|
2887
|
-
if (data.ConfigurationLocationUri
|
|
2343
|
+
if (data.ConfigurationLocationUri != null) {
|
|
2888
2344
|
contents.ConfigurationLocationUri = __expectString(data.ConfigurationLocationUri);
|
|
2889
2345
|
}
|
|
2890
|
-
if (data.ConfigurationName
|
|
2346
|
+
if (data.ConfigurationName != null) {
|
|
2891
2347
|
contents.ConfigurationName = __expectString(data.ConfigurationName);
|
|
2892
2348
|
}
|
|
2893
|
-
if (data.ConfigurationProfileId
|
|
2349
|
+
if (data.ConfigurationProfileId != null) {
|
|
2894
2350
|
contents.ConfigurationProfileId = __expectString(data.ConfigurationProfileId);
|
|
2895
2351
|
}
|
|
2896
|
-
if (data.ConfigurationVersion
|
|
2352
|
+
if (data.ConfigurationVersion != null) {
|
|
2897
2353
|
contents.ConfigurationVersion = __expectString(data.ConfigurationVersion);
|
|
2898
2354
|
}
|
|
2899
|
-
if (data.DeploymentDurationInMinutes
|
|
2355
|
+
if (data.DeploymentDurationInMinutes != null) {
|
|
2900
2356
|
contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes);
|
|
2901
2357
|
}
|
|
2902
|
-
if (data.DeploymentNumber
|
|
2358
|
+
if (data.DeploymentNumber != null) {
|
|
2903
2359
|
contents.DeploymentNumber = __expectInt32(data.DeploymentNumber);
|
|
2904
2360
|
}
|
|
2905
|
-
if (data.DeploymentStrategyId
|
|
2361
|
+
if (data.DeploymentStrategyId != null) {
|
|
2906
2362
|
contents.DeploymentStrategyId = __expectString(data.DeploymentStrategyId);
|
|
2907
2363
|
}
|
|
2908
|
-
if (data.Description
|
|
2364
|
+
if (data.Description != null) {
|
|
2909
2365
|
contents.Description = __expectString(data.Description);
|
|
2910
2366
|
}
|
|
2911
|
-
if (data.EnvironmentId
|
|
2367
|
+
if (data.EnvironmentId != null) {
|
|
2912
2368
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
2913
2369
|
}
|
|
2914
|
-
if (data.EventLog
|
|
2370
|
+
if (data.EventLog != null) {
|
|
2915
2371
|
contents.EventLog = deserializeAws_restJson1DeploymentEvents(data.EventLog, context);
|
|
2916
2372
|
}
|
|
2917
|
-
if (data.FinalBakeTimeInMinutes
|
|
2373
|
+
if (data.FinalBakeTimeInMinutes != null) {
|
|
2918
2374
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
2919
2375
|
}
|
|
2920
|
-
if (data.GrowthFactor
|
|
2376
|
+
if (data.GrowthFactor != null) {
|
|
2921
2377
|
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
2922
2378
|
}
|
|
2923
|
-
if (data.GrowthType
|
|
2379
|
+
if (data.GrowthType != null) {
|
|
2924
2380
|
contents.GrowthType = __expectString(data.GrowthType);
|
|
2925
2381
|
}
|
|
2926
|
-
if (data.PercentageComplete
|
|
2382
|
+
if (data.PercentageComplete != null) {
|
|
2927
2383
|
contents.PercentageComplete = __limitedParseFloat32(data.PercentageComplete);
|
|
2928
2384
|
}
|
|
2929
|
-
if (data.StartedAt
|
|
2385
|
+
if (data.StartedAt != null) {
|
|
2930
2386
|
contents.StartedAt = __expectNonNull(__parseRfc3339DateTime(data.StartedAt));
|
|
2931
2387
|
}
|
|
2932
|
-
if (data.State
|
|
2388
|
+
if (data.State != null) {
|
|
2933
2389
|
contents.State = __expectString(data.State);
|
|
2934
2390
|
}
|
|
2935
|
-
return [2,
|
|
2391
|
+
return [2, contents];
|
|
2936
2392
|
}
|
|
2937
2393
|
});
|
|
2938
2394
|
}); };
|
|
2939
2395
|
var deserializeAws_restJson1GetDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2940
|
-
var parsedOutput, _a,
|
|
2396
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2941
2397
|
var _c;
|
|
2942
2398
|
return __generator(this, function (_d) {
|
|
2943
2399
|
switch (_d.label) {
|
|
@@ -2966,14 +2422,14 @@ var deserializeAws_restJson1GetDeploymentCommandError = function (output, contex
|
|
|
2966
2422
|
case 7: throw _d.sent();
|
|
2967
2423
|
case 8:
|
|
2968
2424
|
parsedBody = parsedOutput.body;
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
$metadata: $metadata,
|
|
2425
|
+
throwDefaultError({
|
|
2426
|
+
output: output,
|
|
2427
|
+
parsedBody: parsedBody,
|
|
2428
|
+
exceptionCtor: __BaseException,
|
|
2429
|
+
errorCode: errorCode,
|
|
2975
2430
|
});
|
|
2976
|
-
|
|
2431
|
+
_d.label = 9;
|
|
2432
|
+
case 9: return [2];
|
|
2977
2433
|
}
|
|
2978
2434
|
});
|
|
2979
2435
|
}); };
|
|
@@ -2985,52 +2441,44 @@ export var deserializeAws_restJson1GetDeploymentStrategyCommand = function (outp
|
|
|
2985
2441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2986
2442
|
return [2, deserializeAws_restJson1GetDeploymentStrategyCommandError(output, context)];
|
|
2987
2443
|
}
|
|
2988
|
-
contents = {
|
|
2444
|
+
contents = map({
|
|
2989
2445
|
$metadata: deserializeMetadata(output),
|
|
2990
|
-
|
|
2991
|
-
Description: undefined,
|
|
2992
|
-
FinalBakeTimeInMinutes: undefined,
|
|
2993
|
-
GrowthFactor: undefined,
|
|
2994
|
-
GrowthType: undefined,
|
|
2995
|
-
Id: undefined,
|
|
2996
|
-
Name: undefined,
|
|
2997
|
-
ReplicateTo: undefined,
|
|
2998
|
-
};
|
|
2446
|
+
});
|
|
2999
2447
|
_a = __expectNonNull;
|
|
3000
2448
|
_b = __expectObject;
|
|
3001
2449
|
return [4, parseBody(output.body, context)];
|
|
3002
2450
|
case 1:
|
|
3003
2451
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3004
|
-
if (data.DeploymentDurationInMinutes
|
|
2452
|
+
if (data.DeploymentDurationInMinutes != null) {
|
|
3005
2453
|
contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes);
|
|
3006
2454
|
}
|
|
3007
|
-
if (data.Description
|
|
2455
|
+
if (data.Description != null) {
|
|
3008
2456
|
contents.Description = __expectString(data.Description);
|
|
3009
2457
|
}
|
|
3010
|
-
if (data.FinalBakeTimeInMinutes
|
|
2458
|
+
if (data.FinalBakeTimeInMinutes != null) {
|
|
3011
2459
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
3012
2460
|
}
|
|
3013
|
-
if (data.GrowthFactor
|
|
2461
|
+
if (data.GrowthFactor != null) {
|
|
3014
2462
|
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
3015
2463
|
}
|
|
3016
|
-
if (data.GrowthType
|
|
2464
|
+
if (data.GrowthType != null) {
|
|
3017
2465
|
contents.GrowthType = __expectString(data.GrowthType);
|
|
3018
2466
|
}
|
|
3019
|
-
if (data.Id
|
|
2467
|
+
if (data.Id != null) {
|
|
3020
2468
|
contents.Id = __expectString(data.Id);
|
|
3021
2469
|
}
|
|
3022
|
-
if (data.Name
|
|
2470
|
+
if (data.Name != null) {
|
|
3023
2471
|
contents.Name = __expectString(data.Name);
|
|
3024
2472
|
}
|
|
3025
|
-
if (data.ReplicateTo
|
|
2473
|
+
if (data.ReplicateTo != null) {
|
|
3026
2474
|
contents.ReplicateTo = __expectString(data.ReplicateTo);
|
|
3027
2475
|
}
|
|
3028
|
-
return [2,
|
|
2476
|
+
return [2, contents];
|
|
3029
2477
|
}
|
|
3030
2478
|
});
|
|
3031
2479
|
}); };
|
|
3032
2480
|
var deserializeAws_restJson1GetDeploymentStrategyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3033
|
-
var parsedOutput, _a,
|
|
2481
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3034
2482
|
var _c;
|
|
3035
2483
|
return __generator(this, function (_d) {
|
|
3036
2484
|
switch (_d.label) {
|
|
@@ -3059,14 +2507,14 @@ var deserializeAws_restJson1GetDeploymentStrategyCommandError = function (output
|
|
|
3059
2507
|
case 7: throw _d.sent();
|
|
3060
2508
|
case 8:
|
|
3061
2509
|
parsedBody = parsedOutput.body;
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
$metadata: $metadata,
|
|
2510
|
+
throwDefaultError({
|
|
2511
|
+
output: output,
|
|
2512
|
+
parsedBody: parsedBody,
|
|
2513
|
+
exceptionCtor: __BaseException,
|
|
2514
|
+
errorCode: errorCode,
|
|
3068
2515
|
});
|
|
3069
|
-
|
|
2516
|
+
_d.label = 9;
|
|
2517
|
+
case 9: return [2];
|
|
3070
2518
|
}
|
|
3071
2519
|
});
|
|
3072
2520
|
}); };
|
|
@@ -3078,44 +2526,38 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
|
|
|
3078
2526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3079
2527
|
return [2, deserializeAws_restJson1GetEnvironmentCommandError(output, context)];
|
|
3080
2528
|
}
|
|
3081
|
-
contents = {
|
|
2529
|
+
contents = map({
|
|
3082
2530
|
$metadata: deserializeMetadata(output),
|
|
3083
|
-
|
|
3084
|
-
Description: undefined,
|
|
3085
|
-
Id: undefined,
|
|
3086
|
-
Monitors: undefined,
|
|
3087
|
-
Name: undefined,
|
|
3088
|
-
State: undefined,
|
|
3089
|
-
};
|
|
2531
|
+
});
|
|
3090
2532
|
_a = __expectNonNull;
|
|
3091
2533
|
_b = __expectObject;
|
|
3092
2534
|
return [4, parseBody(output.body, context)];
|
|
3093
2535
|
case 1:
|
|
3094
2536
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3095
|
-
if (data.ApplicationId
|
|
2537
|
+
if (data.ApplicationId != null) {
|
|
3096
2538
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
3097
2539
|
}
|
|
3098
|
-
if (data.Description
|
|
2540
|
+
if (data.Description != null) {
|
|
3099
2541
|
contents.Description = __expectString(data.Description);
|
|
3100
2542
|
}
|
|
3101
|
-
if (data.Id
|
|
2543
|
+
if (data.Id != null) {
|
|
3102
2544
|
contents.Id = __expectString(data.Id);
|
|
3103
2545
|
}
|
|
3104
|
-
if (data.Monitors
|
|
2546
|
+
if (data.Monitors != null) {
|
|
3105
2547
|
contents.Monitors = deserializeAws_restJson1MonitorList(data.Monitors, context);
|
|
3106
2548
|
}
|
|
3107
|
-
if (data.Name
|
|
2549
|
+
if (data.Name != null) {
|
|
3108
2550
|
contents.Name = __expectString(data.Name);
|
|
3109
2551
|
}
|
|
3110
|
-
if (data.State
|
|
2552
|
+
if (data.State != null) {
|
|
3111
2553
|
contents.State = __expectString(data.State);
|
|
3112
2554
|
}
|
|
3113
|
-
return [2,
|
|
2555
|
+
return [2, contents];
|
|
3114
2556
|
}
|
|
3115
2557
|
});
|
|
3116
2558
|
}); };
|
|
3117
2559
|
var deserializeAws_restJson1GetEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3118
|
-
var parsedOutput, _a,
|
|
2560
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3119
2561
|
var _c;
|
|
3120
2562
|
return __generator(this, function (_d) {
|
|
3121
2563
|
switch (_d.label) {
|
|
@@ -3144,14 +2586,14 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
3144
2586
|
case 7: throw _d.sent();
|
|
3145
2587
|
case 8:
|
|
3146
2588
|
parsedBody = parsedOutput.body;
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
$metadata: $metadata,
|
|
2589
|
+
throwDefaultError({
|
|
2590
|
+
output: output,
|
|
2591
|
+
parsedBody: parsedBody,
|
|
2592
|
+
exceptionCtor: __BaseException,
|
|
2593
|
+
errorCode: errorCode,
|
|
3153
2594
|
});
|
|
3154
|
-
|
|
2595
|
+
_d.label = 9;
|
|
2596
|
+
case 9: return [2];
|
|
3155
2597
|
}
|
|
3156
2598
|
});
|
|
3157
2599
|
}); };
|
|
@@ -3163,48 +2605,41 @@ export var deserializeAws_restJson1GetExtensionCommand = function (output, conte
|
|
|
3163
2605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3164
2606
|
return [2, deserializeAws_restJson1GetExtensionCommandError(output, context)];
|
|
3165
2607
|
}
|
|
3166
|
-
contents = {
|
|
2608
|
+
contents = map({
|
|
3167
2609
|
$metadata: deserializeMetadata(output),
|
|
3168
|
-
|
|
3169
|
-
Arn: undefined,
|
|
3170
|
-
Description: undefined,
|
|
3171
|
-
Id: undefined,
|
|
3172
|
-
Name: undefined,
|
|
3173
|
-
Parameters: undefined,
|
|
3174
|
-
VersionNumber: undefined,
|
|
3175
|
-
};
|
|
2610
|
+
});
|
|
3176
2611
|
_a = __expectNonNull;
|
|
3177
2612
|
_b = __expectObject;
|
|
3178
2613
|
return [4, parseBody(output.body, context)];
|
|
3179
2614
|
case 1:
|
|
3180
2615
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3181
|
-
if (data.Actions
|
|
2616
|
+
if (data.Actions != null) {
|
|
3182
2617
|
contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
|
|
3183
2618
|
}
|
|
3184
|
-
if (data.Arn
|
|
2619
|
+
if (data.Arn != null) {
|
|
3185
2620
|
contents.Arn = __expectString(data.Arn);
|
|
3186
2621
|
}
|
|
3187
|
-
if (data.Description
|
|
2622
|
+
if (data.Description != null) {
|
|
3188
2623
|
contents.Description = __expectString(data.Description);
|
|
3189
2624
|
}
|
|
3190
|
-
if (data.Id
|
|
2625
|
+
if (data.Id != null) {
|
|
3191
2626
|
contents.Id = __expectString(data.Id);
|
|
3192
2627
|
}
|
|
3193
|
-
if (data.Name
|
|
2628
|
+
if (data.Name != null) {
|
|
3194
2629
|
contents.Name = __expectString(data.Name);
|
|
3195
2630
|
}
|
|
3196
|
-
if (data.Parameters
|
|
2631
|
+
if (data.Parameters != null) {
|
|
3197
2632
|
contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
|
|
3198
2633
|
}
|
|
3199
|
-
if (data.VersionNumber
|
|
2634
|
+
if (data.VersionNumber != null) {
|
|
3200
2635
|
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
3201
2636
|
}
|
|
3202
|
-
return [2,
|
|
2637
|
+
return [2, contents];
|
|
3203
2638
|
}
|
|
3204
2639
|
});
|
|
3205
2640
|
}); };
|
|
3206
2641
|
var deserializeAws_restJson1GetExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3207
|
-
var parsedOutput, _a,
|
|
2642
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3208
2643
|
var _c;
|
|
3209
2644
|
return __generator(this, function (_d) {
|
|
3210
2645
|
switch (_d.label) {
|
|
@@ -3233,14 +2668,14 @@ var deserializeAws_restJson1GetExtensionCommandError = function (output, context
|
|
|
3233
2668
|
case 7: throw _d.sent();
|
|
3234
2669
|
case 8:
|
|
3235
2670
|
parsedBody = parsedOutput.body;
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
$metadata: $metadata,
|
|
2671
|
+
throwDefaultError({
|
|
2672
|
+
output: output,
|
|
2673
|
+
parsedBody: parsedBody,
|
|
2674
|
+
exceptionCtor: __BaseException,
|
|
2675
|
+
errorCode: errorCode,
|
|
3242
2676
|
});
|
|
3243
|
-
|
|
2677
|
+
_d.label = 9;
|
|
2678
|
+
case 9: return [2];
|
|
3244
2679
|
}
|
|
3245
2680
|
});
|
|
3246
2681
|
}); };
|
|
@@ -3252,44 +2687,38 @@ export var deserializeAws_restJson1GetExtensionAssociationCommand = function (ou
|
|
|
3252
2687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3253
2688
|
return [2, deserializeAws_restJson1GetExtensionAssociationCommandError(output, context)];
|
|
3254
2689
|
}
|
|
3255
|
-
contents = {
|
|
2690
|
+
contents = map({
|
|
3256
2691
|
$metadata: deserializeMetadata(output),
|
|
3257
|
-
|
|
3258
|
-
ExtensionArn: undefined,
|
|
3259
|
-
ExtensionVersionNumber: undefined,
|
|
3260
|
-
Id: undefined,
|
|
3261
|
-
Parameters: undefined,
|
|
3262
|
-
ResourceArn: undefined,
|
|
3263
|
-
};
|
|
2692
|
+
});
|
|
3264
2693
|
_a = __expectNonNull;
|
|
3265
2694
|
_b = __expectObject;
|
|
3266
2695
|
return [4, parseBody(output.body, context)];
|
|
3267
2696
|
case 1:
|
|
3268
2697
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3269
|
-
if (data.Arn
|
|
2698
|
+
if (data.Arn != null) {
|
|
3270
2699
|
contents.Arn = __expectString(data.Arn);
|
|
3271
2700
|
}
|
|
3272
|
-
if (data.ExtensionArn
|
|
2701
|
+
if (data.ExtensionArn != null) {
|
|
3273
2702
|
contents.ExtensionArn = __expectString(data.ExtensionArn);
|
|
3274
2703
|
}
|
|
3275
|
-
if (data.ExtensionVersionNumber
|
|
2704
|
+
if (data.ExtensionVersionNumber != null) {
|
|
3276
2705
|
contents.ExtensionVersionNumber = __expectInt32(data.ExtensionVersionNumber);
|
|
3277
2706
|
}
|
|
3278
|
-
if (data.Id
|
|
2707
|
+
if (data.Id != null) {
|
|
3279
2708
|
contents.Id = __expectString(data.Id);
|
|
3280
2709
|
}
|
|
3281
|
-
if (data.Parameters
|
|
2710
|
+
if (data.Parameters != null) {
|
|
3282
2711
|
contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
|
|
3283
2712
|
}
|
|
3284
|
-
if (data.ResourceArn
|
|
2713
|
+
if (data.ResourceArn != null) {
|
|
3285
2714
|
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
3286
2715
|
}
|
|
3287
|
-
return [2,
|
|
2716
|
+
return [2, contents];
|
|
3288
2717
|
}
|
|
3289
2718
|
});
|
|
3290
2719
|
}); };
|
|
3291
2720
|
var deserializeAws_restJson1GetExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3292
|
-
var parsedOutput, _a,
|
|
2721
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3293
2722
|
var _c;
|
|
3294
2723
|
return __generator(this, function (_d) {
|
|
3295
2724
|
switch (_d.label) {
|
|
@@ -3318,14 +2747,14 @@ var deserializeAws_restJson1GetExtensionAssociationCommandError = function (outp
|
|
|
3318
2747
|
case 7: throw _d.sent();
|
|
3319
2748
|
case 8:
|
|
3320
2749
|
parsedBody = parsedOutput.body;
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
$metadata: $metadata,
|
|
2750
|
+
throwDefaultError({
|
|
2751
|
+
output: output,
|
|
2752
|
+
parsedBody: parsedBody,
|
|
2753
|
+
exceptionCtor: __BaseException,
|
|
2754
|
+
errorCode: errorCode,
|
|
3327
2755
|
});
|
|
3328
|
-
|
|
2756
|
+
_d.label = 9;
|
|
2757
|
+
case 9: return [2];
|
|
3329
2758
|
}
|
|
3330
2759
|
});
|
|
3331
2760
|
}); };
|
|
@@ -3337,40 +2766,27 @@ export var deserializeAws_restJson1GetHostedConfigurationVersionCommand = functi
|
|
|
3337
2766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3338
2767
|
return [2, deserializeAws_restJson1GetHostedConfigurationVersionCommandError(output, context)];
|
|
3339
2768
|
}
|
|
3340
|
-
contents = {
|
|
2769
|
+
contents = map({
|
|
3341
2770
|
$metadata: deserializeMetadata(output),
|
|
3342
|
-
ApplicationId:
|
|
3343
|
-
ConfigurationProfileId:
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
}
|
|
3352
|
-
if (output.headers["configuration-profile-id"] !== undefined) {
|
|
3353
|
-
contents.ConfigurationProfileId = output.headers["configuration-profile-id"];
|
|
3354
|
-
}
|
|
3355
|
-
if (output.headers["version-number"] !== undefined) {
|
|
3356
|
-
contents.VersionNumber = __strictParseInt32(output.headers["version-number"]);
|
|
3357
|
-
}
|
|
3358
|
-
if (output.headers["description"] !== undefined) {
|
|
3359
|
-
contents.Description = output.headers["description"];
|
|
3360
|
-
}
|
|
3361
|
-
if (output.headers["content-type"] !== undefined) {
|
|
3362
|
-
contents.ContentType = output.headers["content-type"];
|
|
3363
|
-
}
|
|
2771
|
+
ApplicationId: [, output.headers["application-id"]],
|
|
2772
|
+
ConfigurationProfileId: [, output.headers["configuration-profile-id"]],
|
|
2773
|
+
VersionNumber: [
|
|
2774
|
+
function () { return void 0 !== output.headers["version-number"]; },
|
|
2775
|
+
function () { return __strictParseInt32(output.headers["version-number"]); },
|
|
2776
|
+
],
|
|
2777
|
+
Description: [, output.headers["description"]],
|
|
2778
|
+
ContentType: [, output.headers["content-type"]],
|
|
2779
|
+
});
|
|
3364
2780
|
return [4, collectBody(output.body, context)];
|
|
3365
2781
|
case 1:
|
|
3366
2782
|
data = _a.sent();
|
|
3367
2783
|
contents.Content = data;
|
|
3368
|
-
return [2,
|
|
2784
|
+
return [2, contents];
|
|
3369
2785
|
}
|
|
3370
2786
|
});
|
|
3371
2787
|
}); };
|
|
3372
2788
|
var deserializeAws_restJson1GetHostedConfigurationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3373
|
-
var parsedOutput, _a,
|
|
2789
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3374
2790
|
var _c;
|
|
3375
2791
|
return __generator(this, function (_d) {
|
|
3376
2792
|
switch (_d.label) {
|
|
@@ -3399,14 +2815,14 @@ var deserializeAws_restJson1GetHostedConfigurationVersionCommandError = function
|
|
|
3399
2815
|
case 7: throw _d.sent();
|
|
3400
2816
|
case 8:
|
|
3401
2817
|
parsedBody = parsedOutput.body;
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
$metadata: $metadata,
|
|
2818
|
+
throwDefaultError({
|
|
2819
|
+
output: output,
|
|
2820
|
+
parsedBody: parsedBody,
|
|
2821
|
+
exceptionCtor: __BaseException,
|
|
2822
|
+
errorCode: errorCode,
|
|
3408
2823
|
});
|
|
3409
|
-
|
|
2824
|
+
_d.label = 9;
|
|
2825
|
+
case 9: return [2];
|
|
3410
2826
|
}
|
|
3411
2827
|
});
|
|
3412
2828
|
}); };
|
|
@@ -3418,28 +2834,26 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
3418
2834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3419
2835
|
return [2, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
|
|
3420
2836
|
}
|
|
3421
|
-
contents = {
|
|
2837
|
+
contents = map({
|
|
3422
2838
|
$metadata: deserializeMetadata(output),
|
|
3423
|
-
|
|
3424
|
-
NextToken: undefined,
|
|
3425
|
-
};
|
|
2839
|
+
});
|
|
3426
2840
|
_a = __expectNonNull;
|
|
3427
2841
|
_b = __expectObject;
|
|
3428
2842
|
return [4, parseBody(output.body, context)];
|
|
3429
2843
|
case 1:
|
|
3430
2844
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3431
|
-
if (data.Items
|
|
2845
|
+
if (data.Items != null) {
|
|
3432
2846
|
contents.Items = deserializeAws_restJson1ApplicationList(data.Items, context);
|
|
3433
2847
|
}
|
|
3434
|
-
if (data.NextToken
|
|
2848
|
+
if (data.NextToken != null) {
|
|
3435
2849
|
contents.NextToken = __expectString(data.NextToken);
|
|
3436
2850
|
}
|
|
3437
|
-
return [2,
|
|
2851
|
+
return [2, contents];
|
|
3438
2852
|
}
|
|
3439
2853
|
});
|
|
3440
2854
|
}); };
|
|
3441
2855
|
var deserializeAws_restJson1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3442
|
-
var parsedOutput, _a,
|
|
2856
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3443
2857
|
var _c;
|
|
3444
2858
|
return __generator(this, function (_d) {
|
|
3445
2859
|
switch (_d.label) {
|
|
@@ -3464,14 +2878,14 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
3464
2878
|
case 5: throw _d.sent();
|
|
3465
2879
|
case 6:
|
|
3466
2880
|
parsedBody = parsedOutput.body;
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
$metadata: $metadata,
|
|
2881
|
+
throwDefaultError({
|
|
2882
|
+
output: output,
|
|
2883
|
+
parsedBody: parsedBody,
|
|
2884
|
+
exceptionCtor: __BaseException,
|
|
2885
|
+
errorCode: errorCode,
|
|
3473
2886
|
});
|
|
3474
|
-
|
|
2887
|
+
_d.label = 7;
|
|
2888
|
+
case 7: return [2];
|
|
3475
2889
|
}
|
|
3476
2890
|
});
|
|
3477
2891
|
}); };
|
|
@@ -3483,28 +2897,26 @@ export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (
|
|
|
3483
2897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3484
2898
|
return [2, deserializeAws_restJson1ListConfigurationProfilesCommandError(output, context)];
|
|
3485
2899
|
}
|
|
3486
|
-
contents = {
|
|
2900
|
+
contents = map({
|
|
3487
2901
|
$metadata: deserializeMetadata(output),
|
|
3488
|
-
|
|
3489
|
-
NextToken: undefined,
|
|
3490
|
-
};
|
|
2902
|
+
});
|
|
3491
2903
|
_a = __expectNonNull;
|
|
3492
2904
|
_b = __expectObject;
|
|
3493
2905
|
return [4, parseBody(output.body, context)];
|
|
3494
2906
|
case 1:
|
|
3495
2907
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3496
|
-
if (data.Items
|
|
2908
|
+
if (data.Items != null) {
|
|
3497
2909
|
contents.Items = deserializeAws_restJson1ConfigurationProfileSummaryList(data.Items, context);
|
|
3498
2910
|
}
|
|
3499
|
-
if (data.NextToken
|
|
2911
|
+
if (data.NextToken != null) {
|
|
3500
2912
|
contents.NextToken = __expectString(data.NextToken);
|
|
3501
2913
|
}
|
|
3502
|
-
return [2,
|
|
2914
|
+
return [2, contents];
|
|
3503
2915
|
}
|
|
3504
2916
|
});
|
|
3505
2917
|
}); };
|
|
3506
2918
|
var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3507
|
-
var parsedOutput, _a,
|
|
2919
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3508
2920
|
var _c;
|
|
3509
2921
|
return __generator(this, function (_d) {
|
|
3510
2922
|
switch (_d.label) {
|
|
@@ -3533,14 +2945,14 @@ var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (ou
|
|
|
3533
2945
|
case 7: throw _d.sent();
|
|
3534
2946
|
case 8:
|
|
3535
2947
|
parsedBody = parsedOutput.body;
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
$metadata: $metadata,
|
|
2948
|
+
throwDefaultError({
|
|
2949
|
+
output: output,
|
|
2950
|
+
parsedBody: parsedBody,
|
|
2951
|
+
exceptionCtor: __BaseException,
|
|
2952
|
+
errorCode: errorCode,
|
|
3542
2953
|
});
|
|
3543
|
-
|
|
2954
|
+
_d.label = 9;
|
|
2955
|
+
case 9: return [2];
|
|
3544
2956
|
}
|
|
3545
2957
|
});
|
|
3546
2958
|
}); };
|
|
@@ -3552,28 +2964,26 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
|
|
|
3552
2964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3553
2965
|
return [2, deserializeAws_restJson1ListDeploymentsCommandError(output, context)];
|
|
3554
2966
|
}
|
|
3555
|
-
contents = {
|
|
2967
|
+
contents = map({
|
|
3556
2968
|
$metadata: deserializeMetadata(output),
|
|
3557
|
-
|
|
3558
|
-
NextToken: undefined,
|
|
3559
|
-
};
|
|
2969
|
+
});
|
|
3560
2970
|
_a = __expectNonNull;
|
|
3561
2971
|
_b = __expectObject;
|
|
3562
2972
|
return [4, parseBody(output.body, context)];
|
|
3563
2973
|
case 1:
|
|
3564
2974
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3565
|
-
if (data.Items
|
|
2975
|
+
if (data.Items != null) {
|
|
3566
2976
|
contents.Items = deserializeAws_restJson1DeploymentList(data.Items, context);
|
|
3567
2977
|
}
|
|
3568
|
-
if (data.NextToken
|
|
2978
|
+
if (data.NextToken != null) {
|
|
3569
2979
|
contents.NextToken = __expectString(data.NextToken);
|
|
3570
2980
|
}
|
|
3571
|
-
return [2,
|
|
2981
|
+
return [2, contents];
|
|
3572
2982
|
}
|
|
3573
2983
|
});
|
|
3574
2984
|
}); };
|
|
3575
2985
|
var deserializeAws_restJson1ListDeploymentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3576
|
-
var parsedOutput, _a,
|
|
2986
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3577
2987
|
var _c;
|
|
3578
2988
|
return __generator(this, function (_d) {
|
|
3579
2989
|
switch (_d.label) {
|
|
@@ -3602,14 +3012,14 @@ var deserializeAws_restJson1ListDeploymentsCommandError = function (output, cont
|
|
|
3602
3012
|
case 7: throw _d.sent();
|
|
3603
3013
|
case 8:
|
|
3604
3014
|
parsedBody = parsedOutput.body;
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
$metadata: $metadata,
|
|
3015
|
+
throwDefaultError({
|
|
3016
|
+
output: output,
|
|
3017
|
+
parsedBody: parsedBody,
|
|
3018
|
+
exceptionCtor: __BaseException,
|
|
3019
|
+
errorCode: errorCode,
|
|
3611
3020
|
});
|
|
3612
|
-
|
|
3021
|
+
_d.label = 9;
|
|
3022
|
+
case 9: return [2];
|
|
3613
3023
|
}
|
|
3614
3024
|
});
|
|
3615
3025
|
}); };
|
|
@@ -3621,28 +3031,26 @@ export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (o
|
|
|
3621
3031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3622
3032
|
return [2, deserializeAws_restJson1ListDeploymentStrategiesCommandError(output, context)];
|
|
3623
3033
|
}
|
|
3624
|
-
contents = {
|
|
3034
|
+
contents = map({
|
|
3625
3035
|
$metadata: deserializeMetadata(output),
|
|
3626
|
-
|
|
3627
|
-
NextToken: undefined,
|
|
3628
|
-
};
|
|
3036
|
+
});
|
|
3629
3037
|
_a = __expectNonNull;
|
|
3630
3038
|
_b = __expectObject;
|
|
3631
3039
|
return [4, parseBody(output.body, context)];
|
|
3632
3040
|
case 1:
|
|
3633
3041
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3634
|
-
if (data.Items
|
|
3042
|
+
if (data.Items != null) {
|
|
3635
3043
|
contents.Items = deserializeAws_restJson1DeploymentStrategyList(data.Items, context);
|
|
3636
3044
|
}
|
|
3637
|
-
if (data.NextToken
|
|
3045
|
+
if (data.NextToken != null) {
|
|
3638
3046
|
contents.NextToken = __expectString(data.NextToken);
|
|
3639
3047
|
}
|
|
3640
|
-
return [2,
|
|
3048
|
+
return [2, contents];
|
|
3641
3049
|
}
|
|
3642
3050
|
});
|
|
3643
3051
|
}); };
|
|
3644
3052
|
var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3645
|
-
var parsedOutput, _a,
|
|
3053
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3646
3054
|
var _c;
|
|
3647
3055
|
return __generator(this, function (_d) {
|
|
3648
3056
|
switch (_d.label) {
|
|
@@ -3667,14 +3075,14 @@ var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (out
|
|
|
3667
3075
|
case 5: throw _d.sent();
|
|
3668
3076
|
case 6:
|
|
3669
3077
|
parsedBody = parsedOutput.body;
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
$metadata: $metadata,
|
|
3078
|
+
throwDefaultError({
|
|
3079
|
+
output: output,
|
|
3080
|
+
parsedBody: parsedBody,
|
|
3081
|
+
exceptionCtor: __BaseException,
|
|
3082
|
+
errorCode: errorCode,
|
|
3676
3083
|
});
|
|
3677
|
-
|
|
3084
|
+
_d.label = 7;
|
|
3085
|
+
case 7: return [2];
|
|
3678
3086
|
}
|
|
3679
3087
|
});
|
|
3680
3088
|
}); };
|
|
@@ -3686,28 +3094,26 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
3686
3094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3687
3095
|
return [2, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
|
|
3688
3096
|
}
|
|
3689
|
-
contents = {
|
|
3097
|
+
contents = map({
|
|
3690
3098
|
$metadata: deserializeMetadata(output),
|
|
3691
|
-
|
|
3692
|
-
NextToken: undefined,
|
|
3693
|
-
};
|
|
3099
|
+
});
|
|
3694
3100
|
_a = __expectNonNull;
|
|
3695
3101
|
_b = __expectObject;
|
|
3696
3102
|
return [4, parseBody(output.body, context)];
|
|
3697
3103
|
case 1:
|
|
3698
3104
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3699
|
-
if (data.Items
|
|
3105
|
+
if (data.Items != null) {
|
|
3700
3106
|
contents.Items = deserializeAws_restJson1EnvironmentList(data.Items, context);
|
|
3701
3107
|
}
|
|
3702
|
-
if (data.NextToken
|
|
3108
|
+
if (data.NextToken != null) {
|
|
3703
3109
|
contents.NextToken = __expectString(data.NextToken);
|
|
3704
3110
|
}
|
|
3705
|
-
return [2,
|
|
3111
|
+
return [2, contents];
|
|
3706
3112
|
}
|
|
3707
3113
|
});
|
|
3708
3114
|
}); };
|
|
3709
3115
|
var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3710
|
-
var parsedOutput, _a,
|
|
3116
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3711
3117
|
var _c;
|
|
3712
3118
|
return __generator(this, function (_d) {
|
|
3713
3119
|
switch (_d.label) {
|
|
@@ -3736,14 +3142,14 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
3736
3142
|
case 7: throw _d.sent();
|
|
3737
3143
|
case 8:
|
|
3738
3144
|
parsedBody = parsedOutput.body;
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
$metadata: $metadata,
|
|
3145
|
+
throwDefaultError({
|
|
3146
|
+
output: output,
|
|
3147
|
+
parsedBody: parsedBody,
|
|
3148
|
+
exceptionCtor: __BaseException,
|
|
3149
|
+
errorCode: errorCode,
|
|
3745
3150
|
});
|
|
3746
|
-
|
|
3151
|
+
_d.label = 9;
|
|
3152
|
+
case 9: return [2];
|
|
3747
3153
|
}
|
|
3748
3154
|
});
|
|
3749
3155
|
}); };
|
|
@@ -3755,28 +3161,26 @@ export var deserializeAws_restJson1ListExtensionAssociationsCommand = function (
|
|
|
3755
3161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3756
3162
|
return [2, deserializeAws_restJson1ListExtensionAssociationsCommandError(output, context)];
|
|
3757
3163
|
}
|
|
3758
|
-
contents = {
|
|
3164
|
+
contents = map({
|
|
3759
3165
|
$metadata: deserializeMetadata(output),
|
|
3760
|
-
|
|
3761
|
-
NextToken: undefined,
|
|
3762
|
-
};
|
|
3166
|
+
});
|
|
3763
3167
|
_a = __expectNonNull;
|
|
3764
3168
|
_b = __expectObject;
|
|
3765
3169
|
return [4, parseBody(output.body, context)];
|
|
3766
3170
|
case 1:
|
|
3767
3171
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3768
|
-
if (data.Items
|
|
3172
|
+
if (data.Items != null) {
|
|
3769
3173
|
contents.Items = deserializeAws_restJson1ExtensionAssociationSummaries(data.Items, context);
|
|
3770
3174
|
}
|
|
3771
|
-
if (data.NextToken
|
|
3175
|
+
if (data.NextToken != null) {
|
|
3772
3176
|
contents.NextToken = __expectString(data.NextToken);
|
|
3773
3177
|
}
|
|
3774
|
-
return [2,
|
|
3178
|
+
return [2, contents];
|
|
3775
3179
|
}
|
|
3776
3180
|
});
|
|
3777
3181
|
}); };
|
|
3778
3182
|
var deserializeAws_restJson1ListExtensionAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3779
|
-
var parsedOutput, _a,
|
|
3183
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3780
3184
|
var _c;
|
|
3781
3185
|
return __generator(this, function (_d) {
|
|
3782
3186
|
switch (_d.label) {
|
|
@@ -3801,14 +3205,14 @@ var deserializeAws_restJson1ListExtensionAssociationsCommandError = function (ou
|
|
|
3801
3205
|
case 5: throw _d.sent();
|
|
3802
3206
|
case 6:
|
|
3803
3207
|
parsedBody = parsedOutput.body;
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
$metadata: $metadata,
|
|
3208
|
+
throwDefaultError({
|
|
3209
|
+
output: output,
|
|
3210
|
+
parsedBody: parsedBody,
|
|
3211
|
+
exceptionCtor: __BaseException,
|
|
3212
|
+
errorCode: errorCode,
|
|
3810
3213
|
});
|
|
3811
|
-
|
|
3214
|
+
_d.label = 7;
|
|
3215
|
+
case 7: return [2];
|
|
3812
3216
|
}
|
|
3813
3217
|
});
|
|
3814
3218
|
}); };
|
|
@@ -3820,28 +3224,26 @@ export var deserializeAws_restJson1ListExtensionsCommand = function (output, con
|
|
|
3820
3224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3821
3225
|
return [2, deserializeAws_restJson1ListExtensionsCommandError(output, context)];
|
|
3822
3226
|
}
|
|
3823
|
-
contents = {
|
|
3227
|
+
contents = map({
|
|
3824
3228
|
$metadata: deserializeMetadata(output),
|
|
3825
|
-
|
|
3826
|
-
NextToken: undefined,
|
|
3827
|
-
};
|
|
3229
|
+
});
|
|
3828
3230
|
_a = __expectNonNull;
|
|
3829
3231
|
_b = __expectObject;
|
|
3830
3232
|
return [4, parseBody(output.body, context)];
|
|
3831
3233
|
case 1:
|
|
3832
3234
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3833
|
-
if (data.Items
|
|
3235
|
+
if (data.Items != null) {
|
|
3834
3236
|
contents.Items = deserializeAws_restJson1ExtensionSummaries(data.Items, context);
|
|
3835
3237
|
}
|
|
3836
|
-
if (data.NextToken
|
|
3238
|
+
if (data.NextToken != null) {
|
|
3837
3239
|
contents.NextToken = __expectString(data.NextToken);
|
|
3838
3240
|
}
|
|
3839
|
-
return [2,
|
|
3241
|
+
return [2, contents];
|
|
3840
3242
|
}
|
|
3841
3243
|
});
|
|
3842
3244
|
}); };
|
|
3843
3245
|
var deserializeAws_restJson1ListExtensionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3844
|
-
var parsedOutput, _a,
|
|
3246
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3845
3247
|
var _c;
|
|
3846
3248
|
return __generator(this, function (_d) {
|
|
3847
3249
|
switch (_d.label) {
|
|
@@ -3866,14 +3268,14 @@ var deserializeAws_restJson1ListExtensionsCommandError = function (output, conte
|
|
|
3866
3268
|
case 5: throw _d.sent();
|
|
3867
3269
|
case 6:
|
|
3868
3270
|
parsedBody = parsedOutput.body;
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
$metadata: $metadata,
|
|
3271
|
+
throwDefaultError({
|
|
3272
|
+
output: output,
|
|
3273
|
+
parsedBody: parsedBody,
|
|
3274
|
+
exceptionCtor: __BaseException,
|
|
3275
|
+
errorCode: errorCode,
|
|
3875
3276
|
});
|
|
3876
|
-
|
|
3277
|
+
_d.label = 7;
|
|
3278
|
+
case 7: return [2];
|
|
3877
3279
|
}
|
|
3878
3280
|
});
|
|
3879
3281
|
}); };
|
|
@@ -3885,28 +3287,26 @@ export var deserializeAws_restJson1ListHostedConfigurationVersionsCommand = func
|
|
|
3885
3287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3886
3288
|
return [2, deserializeAws_restJson1ListHostedConfigurationVersionsCommandError(output, context)];
|
|
3887
3289
|
}
|
|
3888
|
-
contents = {
|
|
3290
|
+
contents = map({
|
|
3889
3291
|
$metadata: deserializeMetadata(output),
|
|
3890
|
-
|
|
3891
|
-
NextToken: undefined,
|
|
3892
|
-
};
|
|
3292
|
+
});
|
|
3893
3293
|
_a = __expectNonNull;
|
|
3894
3294
|
_b = __expectObject;
|
|
3895
3295
|
return [4, parseBody(output.body, context)];
|
|
3896
3296
|
case 1:
|
|
3897
3297
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3898
|
-
if (data.Items
|
|
3298
|
+
if (data.Items != null) {
|
|
3899
3299
|
contents.Items = deserializeAws_restJson1HostedConfigurationVersionSummaryList(data.Items, context);
|
|
3900
3300
|
}
|
|
3901
|
-
if (data.NextToken
|
|
3301
|
+
if (data.NextToken != null) {
|
|
3902
3302
|
contents.NextToken = __expectString(data.NextToken);
|
|
3903
3303
|
}
|
|
3904
|
-
return [2,
|
|
3304
|
+
return [2, contents];
|
|
3905
3305
|
}
|
|
3906
3306
|
});
|
|
3907
3307
|
}); };
|
|
3908
3308
|
var deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3909
|
-
var parsedOutput, _a,
|
|
3309
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3910
3310
|
var _c;
|
|
3911
3311
|
return __generator(this, function (_d) {
|
|
3912
3312
|
switch (_d.label) {
|
|
@@ -3935,14 +3335,14 @@ var deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = functi
|
|
|
3935
3335
|
case 7: throw _d.sent();
|
|
3936
3336
|
case 8:
|
|
3937
3337
|
parsedBody = parsedOutput.body;
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
$metadata: $metadata,
|
|
3338
|
+
throwDefaultError({
|
|
3339
|
+
output: output,
|
|
3340
|
+
parsedBody: parsedBody,
|
|
3341
|
+
exceptionCtor: __BaseException,
|
|
3342
|
+
errorCode: errorCode,
|
|
3944
3343
|
});
|
|
3945
|
-
|
|
3344
|
+
_d.label = 9;
|
|
3345
|
+
case 9: return [2];
|
|
3946
3346
|
}
|
|
3947
3347
|
});
|
|
3948
3348
|
}); };
|
|
@@ -3954,24 +3354,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3954
3354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3955
3355
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
3956
3356
|
}
|
|
3957
|
-
contents = {
|
|
3357
|
+
contents = map({
|
|
3958
3358
|
$metadata: deserializeMetadata(output),
|
|
3959
|
-
|
|
3960
|
-
};
|
|
3359
|
+
});
|
|
3961
3360
|
_a = __expectNonNull;
|
|
3962
3361
|
_b = __expectObject;
|
|
3963
3362
|
return [4, parseBody(output.body, context)];
|
|
3964
3363
|
case 1:
|
|
3965
3364
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3966
|
-
if (data.Tags
|
|
3365
|
+
if (data.Tags != null) {
|
|
3967
3366
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3968
3367
|
}
|
|
3969
|
-
return [2,
|
|
3368
|
+
return [2, contents];
|
|
3970
3369
|
}
|
|
3971
3370
|
});
|
|
3972
3371
|
}); };
|
|
3973
3372
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3974
|
-
var parsedOutput, _a,
|
|
3373
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3975
3374
|
var _c;
|
|
3976
3375
|
return __generator(this, function (_d) {
|
|
3977
3376
|
switch (_d.label) {
|
|
@@ -4000,14 +3399,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4000
3399
|
case 7: throw _d.sent();
|
|
4001
3400
|
case 8:
|
|
4002
3401
|
parsedBody = parsedOutput.body;
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
$metadata: $metadata,
|
|
3402
|
+
throwDefaultError({
|
|
3403
|
+
output: output,
|
|
3404
|
+
parsedBody: parsedBody,
|
|
3405
|
+
exceptionCtor: __BaseException,
|
|
3406
|
+
errorCode: errorCode,
|
|
4009
3407
|
});
|
|
4010
|
-
|
|
3408
|
+
_d.label = 9;
|
|
3409
|
+
case 9: return [2];
|
|
4011
3410
|
}
|
|
4012
3411
|
});
|
|
4013
3412
|
}); };
|
|
@@ -4019,96 +3418,77 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
|
|
|
4019
3418
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
4020
3419
|
return [2, deserializeAws_restJson1StartDeploymentCommandError(output, context)];
|
|
4021
3420
|
}
|
|
4022
|
-
contents = {
|
|
3421
|
+
contents = map({
|
|
4023
3422
|
$metadata: deserializeMetadata(output),
|
|
4024
|
-
|
|
4025
|
-
AppliedExtensions: undefined,
|
|
4026
|
-
CompletedAt: undefined,
|
|
4027
|
-
ConfigurationLocationUri: undefined,
|
|
4028
|
-
ConfigurationName: undefined,
|
|
4029
|
-
ConfigurationProfileId: undefined,
|
|
4030
|
-
ConfigurationVersion: undefined,
|
|
4031
|
-
DeploymentDurationInMinutes: undefined,
|
|
4032
|
-
DeploymentNumber: undefined,
|
|
4033
|
-
DeploymentStrategyId: undefined,
|
|
4034
|
-
Description: undefined,
|
|
4035
|
-
EnvironmentId: undefined,
|
|
4036
|
-
EventLog: undefined,
|
|
4037
|
-
FinalBakeTimeInMinutes: undefined,
|
|
4038
|
-
GrowthFactor: undefined,
|
|
4039
|
-
GrowthType: undefined,
|
|
4040
|
-
PercentageComplete: undefined,
|
|
4041
|
-
StartedAt: undefined,
|
|
4042
|
-
State: undefined,
|
|
4043
|
-
};
|
|
3423
|
+
});
|
|
4044
3424
|
_a = __expectNonNull;
|
|
4045
3425
|
_b = __expectObject;
|
|
4046
3426
|
return [4, parseBody(output.body, context)];
|
|
4047
3427
|
case 1:
|
|
4048
3428
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4049
|
-
if (data.ApplicationId
|
|
3429
|
+
if (data.ApplicationId != null) {
|
|
4050
3430
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
4051
3431
|
}
|
|
4052
|
-
if (data.AppliedExtensions
|
|
3432
|
+
if (data.AppliedExtensions != null) {
|
|
4053
3433
|
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
4054
3434
|
}
|
|
4055
|
-
if (data.CompletedAt
|
|
3435
|
+
if (data.CompletedAt != null) {
|
|
4056
3436
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
4057
3437
|
}
|
|
4058
|
-
if (data.ConfigurationLocationUri
|
|
3438
|
+
if (data.ConfigurationLocationUri != null) {
|
|
4059
3439
|
contents.ConfigurationLocationUri = __expectString(data.ConfigurationLocationUri);
|
|
4060
3440
|
}
|
|
4061
|
-
if (data.ConfigurationName
|
|
3441
|
+
if (data.ConfigurationName != null) {
|
|
4062
3442
|
contents.ConfigurationName = __expectString(data.ConfigurationName);
|
|
4063
3443
|
}
|
|
4064
|
-
if (data.ConfigurationProfileId
|
|
3444
|
+
if (data.ConfigurationProfileId != null) {
|
|
4065
3445
|
contents.ConfigurationProfileId = __expectString(data.ConfigurationProfileId);
|
|
4066
3446
|
}
|
|
4067
|
-
if (data.ConfigurationVersion
|
|
3447
|
+
if (data.ConfigurationVersion != null) {
|
|
4068
3448
|
contents.ConfigurationVersion = __expectString(data.ConfigurationVersion);
|
|
4069
3449
|
}
|
|
4070
|
-
if (data.DeploymentDurationInMinutes
|
|
3450
|
+
if (data.DeploymentDurationInMinutes != null) {
|
|
4071
3451
|
contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes);
|
|
4072
3452
|
}
|
|
4073
|
-
if (data.DeploymentNumber
|
|
3453
|
+
if (data.DeploymentNumber != null) {
|
|
4074
3454
|
contents.DeploymentNumber = __expectInt32(data.DeploymentNumber);
|
|
4075
3455
|
}
|
|
4076
|
-
if (data.DeploymentStrategyId
|
|
3456
|
+
if (data.DeploymentStrategyId != null) {
|
|
4077
3457
|
contents.DeploymentStrategyId = __expectString(data.DeploymentStrategyId);
|
|
4078
3458
|
}
|
|
4079
|
-
if (data.Description
|
|
3459
|
+
if (data.Description != null) {
|
|
4080
3460
|
contents.Description = __expectString(data.Description);
|
|
4081
3461
|
}
|
|
4082
|
-
if (data.EnvironmentId
|
|
3462
|
+
if (data.EnvironmentId != null) {
|
|
4083
3463
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
4084
3464
|
}
|
|
4085
|
-
if (data.EventLog
|
|
3465
|
+
if (data.EventLog != null) {
|
|
4086
3466
|
contents.EventLog = deserializeAws_restJson1DeploymentEvents(data.EventLog, context);
|
|
4087
3467
|
}
|
|
4088
|
-
if (data.FinalBakeTimeInMinutes
|
|
3468
|
+
if (data.FinalBakeTimeInMinutes != null) {
|
|
4089
3469
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
4090
3470
|
}
|
|
4091
|
-
if (data.GrowthFactor
|
|
3471
|
+
if (data.GrowthFactor != null) {
|
|
4092
3472
|
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
4093
3473
|
}
|
|
4094
|
-
if (data.GrowthType
|
|
3474
|
+
if (data.GrowthType != null) {
|
|
4095
3475
|
contents.GrowthType = __expectString(data.GrowthType);
|
|
4096
3476
|
}
|
|
4097
|
-
if (data.PercentageComplete
|
|
3477
|
+
if (data.PercentageComplete != null) {
|
|
4098
3478
|
contents.PercentageComplete = __limitedParseFloat32(data.PercentageComplete);
|
|
4099
3479
|
}
|
|
4100
|
-
if (data.StartedAt
|
|
3480
|
+
if (data.StartedAt != null) {
|
|
4101
3481
|
contents.StartedAt = __expectNonNull(__parseRfc3339DateTime(data.StartedAt));
|
|
4102
3482
|
}
|
|
4103
|
-
if (data.State
|
|
3483
|
+
if (data.State != null) {
|
|
4104
3484
|
contents.State = __expectString(data.State);
|
|
4105
3485
|
}
|
|
4106
|
-
return [2,
|
|
3486
|
+
return [2, contents];
|
|
4107
3487
|
}
|
|
4108
3488
|
});
|
|
4109
3489
|
}); };
|
|
4110
3490
|
var deserializeAws_restJson1StartDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4111
|
-
var parsedOutput, _a,
|
|
3491
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4112
3492
|
var _c;
|
|
4113
3493
|
return __generator(this, function (_d) {
|
|
4114
3494
|
switch (_d.label) {
|
|
@@ -4141,14 +3521,14 @@ var deserializeAws_restJson1StartDeploymentCommandError = function (output, cont
|
|
|
4141
3521
|
case 9: throw _d.sent();
|
|
4142
3522
|
case 10:
|
|
4143
3523
|
parsedBody = parsedOutput.body;
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
$metadata: $metadata,
|
|
3524
|
+
throwDefaultError({
|
|
3525
|
+
output: output,
|
|
3526
|
+
parsedBody: parsedBody,
|
|
3527
|
+
exceptionCtor: __BaseException,
|
|
3528
|
+
errorCode: errorCode,
|
|
4150
3529
|
});
|
|
4151
|
-
|
|
3530
|
+
_d.label = 11;
|
|
3531
|
+
case 11: return [2];
|
|
4152
3532
|
}
|
|
4153
3533
|
});
|
|
4154
3534
|
}); };
|
|
@@ -4160,96 +3540,77 @@ export var deserializeAws_restJson1StopDeploymentCommand = function (output, con
|
|
|
4160
3540
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
4161
3541
|
return [2, deserializeAws_restJson1StopDeploymentCommandError(output, context)];
|
|
4162
3542
|
}
|
|
4163
|
-
contents = {
|
|
3543
|
+
contents = map({
|
|
4164
3544
|
$metadata: deserializeMetadata(output),
|
|
4165
|
-
|
|
4166
|
-
AppliedExtensions: undefined,
|
|
4167
|
-
CompletedAt: undefined,
|
|
4168
|
-
ConfigurationLocationUri: undefined,
|
|
4169
|
-
ConfigurationName: undefined,
|
|
4170
|
-
ConfigurationProfileId: undefined,
|
|
4171
|
-
ConfigurationVersion: undefined,
|
|
4172
|
-
DeploymentDurationInMinutes: undefined,
|
|
4173
|
-
DeploymentNumber: undefined,
|
|
4174
|
-
DeploymentStrategyId: undefined,
|
|
4175
|
-
Description: undefined,
|
|
4176
|
-
EnvironmentId: undefined,
|
|
4177
|
-
EventLog: undefined,
|
|
4178
|
-
FinalBakeTimeInMinutes: undefined,
|
|
4179
|
-
GrowthFactor: undefined,
|
|
4180
|
-
GrowthType: undefined,
|
|
4181
|
-
PercentageComplete: undefined,
|
|
4182
|
-
StartedAt: undefined,
|
|
4183
|
-
State: undefined,
|
|
4184
|
-
};
|
|
3545
|
+
});
|
|
4185
3546
|
_a = __expectNonNull;
|
|
4186
3547
|
_b = __expectObject;
|
|
4187
3548
|
return [4, parseBody(output.body, context)];
|
|
4188
3549
|
case 1:
|
|
4189
3550
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4190
|
-
if (data.ApplicationId
|
|
3551
|
+
if (data.ApplicationId != null) {
|
|
4191
3552
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
4192
3553
|
}
|
|
4193
|
-
if (data.AppliedExtensions
|
|
3554
|
+
if (data.AppliedExtensions != null) {
|
|
4194
3555
|
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
4195
3556
|
}
|
|
4196
|
-
if (data.CompletedAt
|
|
3557
|
+
if (data.CompletedAt != null) {
|
|
4197
3558
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
4198
3559
|
}
|
|
4199
|
-
if (data.ConfigurationLocationUri
|
|
3560
|
+
if (data.ConfigurationLocationUri != null) {
|
|
4200
3561
|
contents.ConfigurationLocationUri = __expectString(data.ConfigurationLocationUri);
|
|
4201
3562
|
}
|
|
4202
|
-
if (data.ConfigurationName
|
|
3563
|
+
if (data.ConfigurationName != null) {
|
|
4203
3564
|
contents.ConfigurationName = __expectString(data.ConfigurationName);
|
|
4204
3565
|
}
|
|
4205
|
-
if (data.ConfigurationProfileId
|
|
3566
|
+
if (data.ConfigurationProfileId != null) {
|
|
4206
3567
|
contents.ConfigurationProfileId = __expectString(data.ConfigurationProfileId);
|
|
4207
3568
|
}
|
|
4208
|
-
if (data.ConfigurationVersion
|
|
3569
|
+
if (data.ConfigurationVersion != null) {
|
|
4209
3570
|
contents.ConfigurationVersion = __expectString(data.ConfigurationVersion);
|
|
4210
3571
|
}
|
|
4211
|
-
if (data.DeploymentDurationInMinutes
|
|
3572
|
+
if (data.DeploymentDurationInMinutes != null) {
|
|
4212
3573
|
contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes);
|
|
4213
3574
|
}
|
|
4214
|
-
if (data.DeploymentNumber
|
|
3575
|
+
if (data.DeploymentNumber != null) {
|
|
4215
3576
|
contents.DeploymentNumber = __expectInt32(data.DeploymentNumber);
|
|
4216
3577
|
}
|
|
4217
|
-
if (data.DeploymentStrategyId
|
|
3578
|
+
if (data.DeploymentStrategyId != null) {
|
|
4218
3579
|
contents.DeploymentStrategyId = __expectString(data.DeploymentStrategyId);
|
|
4219
3580
|
}
|
|
4220
|
-
if (data.Description
|
|
3581
|
+
if (data.Description != null) {
|
|
4221
3582
|
contents.Description = __expectString(data.Description);
|
|
4222
3583
|
}
|
|
4223
|
-
if (data.EnvironmentId
|
|
3584
|
+
if (data.EnvironmentId != null) {
|
|
4224
3585
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
4225
3586
|
}
|
|
4226
|
-
if (data.EventLog
|
|
3587
|
+
if (data.EventLog != null) {
|
|
4227
3588
|
contents.EventLog = deserializeAws_restJson1DeploymentEvents(data.EventLog, context);
|
|
4228
3589
|
}
|
|
4229
|
-
if (data.FinalBakeTimeInMinutes
|
|
3590
|
+
if (data.FinalBakeTimeInMinutes != null) {
|
|
4230
3591
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
4231
3592
|
}
|
|
4232
|
-
if (data.GrowthFactor
|
|
3593
|
+
if (data.GrowthFactor != null) {
|
|
4233
3594
|
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
4234
3595
|
}
|
|
4235
|
-
if (data.GrowthType
|
|
3596
|
+
if (data.GrowthType != null) {
|
|
4236
3597
|
contents.GrowthType = __expectString(data.GrowthType);
|
|
4237
3598
|
}
|
|
4238
|
-
if (data.PercentageComplete
|
|
3599
|
+
if (data.PercentageComplete != null) {
|
|
4239
3600
|
contents.PercentageComplete = __limitedParseFloat32(data.PercentageComplete);
|
|
4240
3601
|
}
|
|
4241
|
-
if (data.StartedAt
|
|
3602
|
+
if (data.StartedAt != null) {
|
|
4242
3603
|
contents.StartedAt = __expectNonNull(__parseRfc3339DateTime(data.StartedAt));
|
|
4243
3604
|
}
|
|
4244
|
-
if (data.State
|
|
3605
|
+
if (data.State != null) {
|
|
4245
3606
|
contents.State = __expectString(data.State);
|
|
4246
3607
|
}
|
|
4247
|
-
return [2,
|
|
3608
|
+
return [2, contents];
|
|
4248
3609
|
}
|
|
4249
3610
|
});
|
|
4250
3611
|
}); };
|
|
4251
3612
|
var deserializeAws_restJson1StopDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4252
|
-
var parsedOutput, _a,
|
|
3613
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4253
3614
|
var _c;
|
|
4254
3615
|
return __generator(this, function (_d) {
|
|
4255
3616
|
switch (_d.label) {
|
|
@@ -4278,14 +3639,14 @@ var deserializeAws_restJson1StopDeploymentCommandError = function (output, conte
|
|
|
4278
3639
|
case 7: throw _d.sent();
|
|
4279
3640
|
case 8:
|
|
4280
3641
|
parsedBody = parsedOutput.body;
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
$metadata: $metadata,
|
|
3642
|
+
throwDefaultError({
|
|
3643
|
+
output: output,
|
|
3644
|
+
parsedBody: parsedBody,
|
|
3645
|
+
exceptionCtor: __BaseException,
|
|
3646
|
+
errorCode: errorCode,
|
|
4287
3647
|
});
|
|
4288
|
-
|
|
3648
|
+
_d.label = 9;
|
|
3649
|
+
case 9: return [2];
|
|
4289
3650
|
}
|
|
4290
3651
|
});
|
|
4291
3652
|
}); };
|
|
@@ -4297,18 +3658,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
4297
3658
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4298
3659
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
4299
3660
|
}
|
|
4300
|
-
contents = {
|
|
3661
|
+
contents = map({
|
|
4301
3662
|
$metadata: deserializeMetadata(output),
|
|
4302
|
-
};
|
|
3663
|
+
});
|
|
4303
3664
|
return [4, collectBody(output.body, context)];
|
|
4304
3665
|
case 1:
|
|
4305
3666
|
_a.sent();
|
|
4306
|
-
return [2,
|
|
3667
|
+
return [2, contents];
|
|
4307
3668
|
}
|
|
4308
3669
|
});
|
|
4309
3670
|
}); };
|
|
4310
3671
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4311
|
-
var parsedOutput, _a,
|
|
3672
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4312
3673
|
var _c;
|
|
4313
3674
|
return __generator(this, function (_d) {
|
|
4314
3675
|
switch (_d.label) {
|
|
@@ -4337,14 +3698,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4337
3698
|
case 7: throw _d.sent();
|
|
4338
3699
|
case 8:
|
|
4339
3700
|
parsedBody = parsedOutput.body;
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
$metadata: $metadata,
|
|
3701
|
+
throwDefaultError({
|
|
3702
|
+
output: output,
|
|
3703
|
+
parsedBody: parsedBody,
|
|
3704
|
+
exceptionCtor: __BaseException,
|
|
3705
|
+
errorCode: errorCode,
|
|
4346
3706
|
});
|
|
4347
|
-
|
|
3707
|
+
_d.label = 9;
|
|
3708
|
+
case 9: return [2];
|
|
4348
3709
|
}
|
|
4349
3710
|
});
|
|
4350
3711
|
}); };
|
|
@@ -4356,18 +3717,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4356
3717
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4357
3718
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
4358
3719
|
}
|
|
4359
|
-
contents = {
|
|
3720
|
+
contents = map({
|
|
4360
3721
|
$metadata: deserializeMetadata(output),
|
|
4361
|
-
};
|
|
3722
|
+
});
|
|
4362
3723
|
return [4, collectBody(output.body, context)];
|
|
4363
3724
|
case 1:
|
|
4364
3725
|
_a.sent();
|
|
4365
|
-
return [2,
|
|
3726
|
+
return [2, contents];
|
|
4366
3727
|
}
|
|
4367
3728
|
});
|
|
4368
3729
|
}); };
|
|
4369
3730
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4370
|
-
var parsedOutput, _a,
|
|
3731
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4371
3732
|
var _c;
|
|
4372
3733
|
return __generator(this, function (_d) {
|
|
4373
3734
|
switch (_d.label) {
|
|
@@ -4396,14 +3757,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4396
3757
|
case 7: throw _d.sent();
|
|
4397
3758
|
case 8:
|
|
4398
3759
|
parsedBody = parsedOutput.body;
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
$metadata: $metadata,
|
|
3760
|
+
throwDefaultError({
|
|
3761
|
+
output: output,
|
|
3762
|
+
parsedBody: parsedBody,
|
|
3763
|
+
exceptionCtor: __BaseException,
|
|
3764
|
+
errorCode: errorCode,
|
|
4405
3765
|
});
|
|
4406
|
-
|
|
3766
|
+
_d.label = 9;
|
|
3767
|
+
case 9: return [2];
|
|
4407
3768
|
}
|
|
4408
3769
|
});
|
|
4409
3770
|
}); };
|
|
@@ -4415,32 +3776,29 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
|
|
|
4415
3776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4416
3777
|
return [2, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
|
|
4417
3778
|
}
|
|
4418
|
-
contents = {
|
|
3779
|
+
contents = map({
|
|
4419
3780
|
$metadata: deserializeMetadata(output),
|
|
4420
|
-
|
|
4421
|
-
Id: undefined,
|
|
4422
|
-
Name: undefined,
|
|
4423
|
-
};
|
|
3781
|
+
});
|
|
4424
3782
|
_a = __expectNonNull;
|
|
4425
3783
|
_b = __expectObject;
|
|
4426
3784
|
return [4, parseBody(output.body, context)];
|
|
4427
3785
|
case 1:
|
|
4428
3786
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4429
|
-
if (data.Description
|
|
3787
|
+
if (data.Description != null) {
|
|
4430
3788
|
contents.Description = __expectString(data.Description);
|
|
4431
3789
|
}
|
|
4432
|
-
if (data.Id
|
|
3790
|
+
if (data.Id != null) {
|
|
4433
3791
|
contents.Id = __expectString(data.Id);
|
|
4434
3792
|
}
|
|
4435
|
-
if (data.Name
|
|
3793
|
+
if (data.Name != null) {
|
|
4436
3794
|
contents.Name = __expectString(data.Name);
|
|
4437
3795
|
}
|
|
4438
|
-
return [2,
|
|
3796
|
+
return [2, contents];
|
|
4439
3797
|
}
|
|
4440
3798
|
});
|
|
4441
3799
|
}); };
|
|
4442
3800
|
var deserializeAws_restJson1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4443
|
-
var parsedOutput, _a,
|
|
3801
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4444
3802
|
var _c;
|
|
4445
3803
|
return __generator(this, function (_d) {
|
|
4446
3804
|
switch (_d.label) {
|
|
@@ -4469,14 +3827,14 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
4469
3827
|
case 7: throw _d.sent();
|
|
4470
3828
|
case 8:
|
|
4471
3829
|
parsedBody = parsedOutput.body;
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
$metadata: $metadata,
|
|
3830
|
+
throwDefaultError({
|
|
3831
|
+
output: output,
|
|
3832
|
+
parsedBody: parsedBody,
|
|
3833
|
+
exceptionCtor: __BaseException,
|
|
3834
|
+
errorCode: errorCode,
|
|
4478
3835
|
});
|
|
4479
|
-
|
|
3836
|
+
_d.label = 9;
|
|
3837
|
+
case 9: return [2];
|
|
4480
3838
|
}
|
|
4481
3839
|
});
|
|
4482
3840
|
}); };
|
|
@@ -4488,52 +3846,44 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
|
|
|
4488
3846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4489
3847
|
return [2, deserializeAws_restJson1UpdateConfigurationProfileCommandError(output, context)];
|
|
4490
3848
|
}
|
|
4491
|
-
contents = {
|
|
3849
|
+
contents = map({
|
|
4492
3850
|
$metadata: deserializeMetadata(output),
|
|
4493
|
-
|
|
4494
|
-
Description: undefined,
|
|
4495
|
-
Id: undefined,
|
|
4496
|
-
LocationUri: undefined,
|
|
4497
|
-
Name: undefined,
|
|
4498
|
-
RetrievalRoleArn: undefined,
|
|
4499
|
-
Type: undefined,
|
|
4500
|
-
Validators: undefined,
|
|
4501
|
-
};
|
|
3851
|
+
});
|
|
4502
3852
|
_a = __expectNonNull;
|
|
4503
3853
|
_b = __expectObject;
|
|
4504
3854
|
return [4, parseBody(output.body, context)];
|
|
4505
3855
|
case 1:
|
|
4506
3856
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4507
|
-
if (data.ApplicationId
|
|
3857
|
+
if (data.ApplicationId != null) {
|
|
4508
3858
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
4509
3859
|
}
|
|
4510
|
-
if (data.Description
|
|
3860
|
+
if (data.Description != null) {
|
|
4511
3861
|
contents.Description = __expectString(data.Description);
|
|
4512
3862
|
}
|
|
4513
|
-
if (data.Id
|
|
3863
|
+
if (data.Id != null) {
|
|
4514
3864
|
contents.Id = __expectString(data.Id);
|
|
4515
3865
|
}
|
|
4516
|
-
if (data.LocationUri
|
|
3866
|
+
if (data.LocationUri != null) {
|
|
4517
3867
|
contents.LocationUri = __expectString(data.LocationUri);
|
|
4518
3868
|
}
|
|
4519
|
-
if (data.Name
|
|
3869
|
+
if (data.Name != null) {
|
|
4520
3870
|
contents.Name = __expectString(data.Name);
|
|
4521
3871
|
}
|
|
4522
|
-
if (data.RetrievalRoleArn
|
|
3872
|
+
if (data.RetrievalRoleArn != null) {
|
|
4523
3873
|
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
4524
3874
|
}
|
|
4525
|
-
if (data.Type
|
|
3875
|
+
if (data.Type != null) {
|
|
4526
3876
|
contents.Type = __expectString(data.Type);
|
|
4527
3877
|
}
|
|
4528
|
-
if (data.Validators
|
|
3878
|
+
if (data.Validators != null) {
|
|
4529
3879
|
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
4530
3880
|
}
|
|
4531
|
-
return [2,
|
|
3881
|
+
return [2, contents];
|
|
4532
3882
|
}
|
|
4533
3883
|
});
|
|
4534
3884
|
}); };
|
|
4535
3885
|
var deserializeAws_restJson1UpdateConfigurationProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4536
|
-
var parsedOutput, _a,
|
|
3886
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4537
3887
|
var _c;
|
|
4538
3888
|
return __generator(this, function (_d) {
|
|
4539
3889
|
switch (_d.label) {
|
|
@@ -4562,14 +3912,14 @@ var deserializeAws_restJson1UpdateConfigurationProfileCommandError = function (o
|
|
|
4562
3912
|
case 7: throw _d.sent();
|
|
4563
3913
|
case 8:
|
|
4564
3914
|
parsedBody = parsedOutput.body;
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
$metadata: $metadata,
|
|
3915
|
+
throwDefaultError({
|
|
3916
|
+
output: output,
|
|
3917
|
+
parsedBody: parsedBody,
|
|
3918
|
+
exceptionCtor: __BaseException,
|
|
3919
|
+
errorCode: errorCode,
|
|
4571
3920
|
});
|
|
4572
|
-
|
|
3921
|
+
_d.label = 9;
|
|
3922
|
+
case 9: return [2];
|
|
4573
3923
|
}
|
|
4574
3924
|
});
|
|
4575
3925
|
}); };
|
|
@@ -4581,52 +3931,44 @@ export var deserializeAws_restJson1UpdateDeploymentStrategyCommand = function (o
|
|
|
4581
3931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4582
3932
|
return [2, deserializeAws_restJson1UpdateDeploymentStrategyCommandError(output, context)];
|
|
4583
3933
|
}
|
|
4584
|
-
contents = {
|
|
3934
|
+
contents = map({
|
|
4585
3935
|
$metadata: deserializeMetadata(output),
|
|
4586
|
-
|
|
4587
|
-
Description: undefined,
|
|
4588
|
-
FinalBakeTimeInMinutes: undefined,
|
|
4589
|
-
GrowthFactor: undefined,
|
|
4590
|
-
GrowthType: undefined,
|
|
4591
|
-
Id: undefined,
|
|
4592
|
-
Name: undefined,
|
|
4593
|
-
ReplicateTo: undefined,
|
|
4594
|
-
};
|
|
3936
|
+
});
|
|
4595
3937
|
_a = __expectNonNull;
|
|
4596
3938
|
_b = __expectObject;
|
|
4597
3939
|
return [4, parseBody(output.body, context)];
|
|
4598
3940
|
case 1:
|
|
4599
3941
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4600
|
-
if (data.DeploymentDurationInMinutes
|
|
3942
|
+
if (data.DeploymentDurationInMinutes != null) {
|
|
4601
3943
|
contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes);
|
|
4602
3944
|
}
|
|
4603
|
-
if (data.Description
|
|
3945
|
+
if (data.Description != null) {
|
|
4604
3946
|
contents.Description = __expectString(data.Description);
|
|
4605
3947
|
}
|
|
4606
|
-
if (data.FinalBakeTimeInMinutes
|
|
3948
|
+
if (data.FinalBakeTimeInMinutes != null) {
|
|
4607
3949
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
4608
3950
|
}
|
|
4609
|
-
if (data.GrowthFactor
|
|
3951
|
+
if (data.GrowthFactor != null) {
|
|
4610
3952
|
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
4611
3953
|
}
|
|
4612
|
-
if (data.GrowthType
|
|
3954
|
+
if (data.GrowthType != null) {
|
|
4613
3955
|
contents.GrowthType = __expectString(data.GrowthType);
|
|
4614
3956
|
}
|
|
4615
|
-
if (data.Id
|
|
3957
|
+
if (data.Id != null) {
|
|
4616
3958
|
contents.Id = __expectString(data.Id);
|
|
4617
3959
|
}
|
|
4618
|
-
if (data.Name
|
|
3960
|
+
if (data.Name != null) {
|
|
4619
3961
|
contents.Name = __expectString(data.Name);
|
|
4620
3962
|
}
|
|
4621
|
-
if (data.ReplicateTo
|
|
3963
|
+
if (data.ReplicateTo != null) {
|
|
4622
3964
|
contents.ReplicateTo = __expectString(data.ReplicateTo);
|
|
4623
3965
|
}
|
|
4624
|
-
return [2,
|
|
3966
|
+
return [2, contents];
|
|
4625
3967
|
}
|
|
4626
3968
|
});
|
|
4627
3969
|
}); };
|
|
4628
3970
|
var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4629
|
-
var parsedOutput, _a,
|
|
3971
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4630
3972
|
var _c;
|
|
4631
3973
|
return __generator(this, function (_d) {
|
|
4632
3974
|
switch (_d.label) {
|
|
@@ -4655,14 +3997,14 @@ var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (out
|
|
|
4655
3997
|
case 7: throw _d.sent();
|
|
4656
3998
|
case 8:
|
|
4657
3999
|
parsedBody = parsedOutput.body;
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
$metadata: $metadata,
|
|
4000
|
+
throwDefaultError({
|
|
4001
|
+
output: output,
|
|
4002
|
+
parsedBody: parsedBody,
|
|
4003
|
+
exceptionCtor: __BaseException,
|
|
4004
|
+
errorCode: errorCode,
|
|
4664
4005
|
});
|
|
4665
|
-
|
|
4006
|
+
_d.label = 9;
|
|
4007
|
+
case 9: return [2];
|
|
4666
4008
|
}
|
|
4667
4009
|
});
|
|
4668
4010
|
}); };
|
|
@@ -4674,44 +4016,38 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
|
|
|
4674
4016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4675
4017
|
return [2, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
|
|
4676
4018
|
}
|
|
4677
|
-
contents = {
|
|
4019
|
+
contents = map({
|
|
4678
4020
|
$metadata: deserializeMetadata(output),
|
|
4679
|
-
|
|
4680
|
-
Description: undefined,
|
|
4681
|
-
Id: undefined,
|
|
4682
|
-
Monitors: undefined,
|
|
4683
|
-
Name: undefined,
|
|
4684
|
-
State: undefined,
|
|
4685
|
-
};
|
|
4021
|
+
});
|
|
4686
4022
|
_a = __expectNonNull;
|
|
4687
4023
|
_b = __expectObject;
|
|
4688
4024
|
return [4, parseBody(output.body, context)];
|
|
4689
4025
|
case 1:
|
|
4690
4026
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4691
|
-
if (data.ApplicationId
|
|
4027
|
+
if (data.ApplicationId != null) {
|
|
4692
4028
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
4693
4029
|
}
|
|
4694
|
-
if (data.Description
|
|
4030
|
+
if (data.Description != null) {
|
|
4695
4031
|
contents.Description = __expectString(data.Description);
|
|
4696
4032
|
}
|
|
4697
|
-
if (data.Id
|
|
4033
|
+
if (data.Id != null) {
|
|
4698
4034
|
contents.Id = __expectString(data.Id);
|
|
4699
4035
|
}
|
|
4700
|
-
if (data.Monitors
|
|
4036
|
+
if (data.Monitors != null) {
|
|
4701
4037
|
contents.Monitors = deserializeAws_restJson1MonitorList(data.Monitors, context);
|
|
4702
4038
|
}
|
|
4703
|
-
if (data.Name
|
|
4039
|
+
if (data.Name != null) {
|
|
4704
4040
|
contents.Name = __expectString(data.Name);
|
|
4705
4041
|
}
|
|
4706
|
-
if (data.State
|
|
4042
|
+
if (data.State != null) {
|
|
4707
4043
|
contents.State = __expectString(data.State);
|
|
4708
4044
|
}
|
|
4709
|
-
return [2,
|
|
4045
|
+
return [2, contents];
|
|
4710
4046
|
}
|
|
4711
4047
|
});
|
|
4712
4048
|
}); };
|
|
4713
4049
|
var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4714
|
-
var parsedOutput, _a,
|
|
4050
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4715
4051
|
var _c;
|
|
4716
4052
|
return __generator(this, function (_d) {
|
|
4717
4053
|
switch (_d.label) {
|
|
@@ -4740,14 +4076,14 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
|
|
|
4740
4076
|
case 7: throw _d.sent();
|
|
4741
4077
|
case 8:
|
|
4742
4078
|
parsedBody = parsedOutput.body;
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
$metadata: $metadata,
|
|
4079
|
+
throwDefaultError({
|
|
4080
|
+
output: output,
|
|
4081
|
+
parsedBody: parsedBody,
|
|
4082
|
+
exceptionCtor: __BaseException,
|
|
4083
|
+
errorCode: errorCode,
|
|
4749
4084
|
});
|
|
4750
|
-
|
|
4085
|
+
_d.label = 9;
|
|
4086
|
+
case 9: return [2];
|
|
4751
4087
|
}
|
|
4752
4088
|
});
|
|
4753
4089
|
}); };
|
|
@@ -4759,48 +4095,41 @@ export var deserializeAws_restJson1UpdateExtensionCommand = function (output, co
|
|
|
4759
4095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4760
4096
|
return [2, deserializeAws_restJson1UpdateExtensionCommandError(output, context)];
|
|
4761
4097
|
}
|
|
4762
|
-
contents = {
|
|
4098
|
+
contents = map({
|
|
4763
4099
|
$metadata: deserializeMetadata(output),
|
|
4764
|
-
|
|
4765
|
-
Arn: undefined,
|
|
4766
|
-
Description: undefined,
|
|
4767
|
-
Id: undefined,
|
|
4768
|
-
Name: undefined,
|
|
4769
|
-
Parameters: undefined,
|
|
4770
|
-
VersionNumber: undefined,
|
|
4771
|
-
};
|
|
4100
|
+
});
|
|
4772
4101
|
_a = __expectNonNull;
|
|
4773
4102
|
_b = __expectObject;
|
|
4774
4103
|
return [4, parseBody(output.body, context)];
|
|
4775
4104
|
case 1:
|
|
4776
4105
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4777
|
-
if (data.Actions
|
|
4106
|
+
if (data.Actions != null) {
|
|
4778
4107
|
contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
|
|
4779
4108
|
}
|
|
4780
|
-
if (data.Arn
|
|
4109
|
+
if (data.Arn != null) {
|
|
4781
4110
|
contents.Arn = __expectString(data.Arn);
|
|
4782
4111
|
}
|
|
4783
|
-
if (data.Description
|
|
4112
|
+
if (data.Description != null) {
|
|
4784
4113
|
contents.Description = __expectString(data.Description);
|
|
4785
4114
|
}
|
|
4786
|
-
if (data.Id
|
|
4115
|
+
if (data.Id != null) {
|
|
4787
4116
|
contents.Id = __expectString(data.Id);
|
|
4788
4117
|
}
|
|
4789
|
-
if (data.Name
|
|
4118
|
+
if (data.Name != null) {
|
|
4790
4119
|
contents.Name = __expectString(data.Name);
|
|
4791
4120
|
}
|
|
4792
|
-
if (data.Parameters
|
|
4121
|
+
if (data.Parameters != null) {
|
|
4793
4122
|
contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
|
|
4794
4123
|
}
|
|
4795
|
-
if (data.VersionNumber
|
|
4124
|
+
if (data.VersionNumber != null) {
|
|
4796
4125
|
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
4797
4126
|
}
|
|
4798
|
-
return [2,
|
|
4127
|
+
return [2, contents];
|
|
4799
4128
|
}
|
|
4800
4129
|
});
|
|
4801
4130
|
}); };
|
|
4802
4131
|
var deserializeAws_restJson1UpdateExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4803
|
-
var parsedOutput, _a,
|
|
4132
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4804
4133
|
var _c;
|
|
4805
4134
|
return __generator(this, function (_d) {
|
|
4806
4135
|
switch (_d.label) {
|
|
@@ -4833,14 +4162,14 @@ var deserializeAws_restJson1UpdateExtensionCommandError = function (output, cont
|
|
|
4833
4162
|
case 9: throw _d.sent();
|
|
4834
4163
|
case 10:
|
|
4835
4164
|
parsedBody = parsedOutput.body;
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
$metadata: $metadata,
|
|
4165
|
+
throwDefaultError({
|
|
4166
|
+
output: output,
|
|
4167
|
+
parsedBody: parsedBody,
|
|
4168
|
+
exceptionCtor: __BaseException,
|
|
4169
|
+
errorCode: errorCode,
|
|
4842
4170
|
});
|
|
4843
|
-
|
|
4171
|
+
_d.label = 11;
|
|
4172
|
+
case 11: return [2];
|
|
4844
4173
|
}
|
|
4845
4174
|
});
|
|
4846
4175
|
}); };
|
|
@@ -4852,44 +4181,38 @@ export var deserializeAws_restJson1UpdateExtensionAssociationCommand = function
|
|
|
4852
4181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4853
4182
|
return [2, deserializeAws_restJson1UpdateExtensionAssociationCommandError(output, context)];
|
|
4854
4183
|
}
|
|
4855
|
-
contents = {
|
|
4184
|
+
contents = map({
|
|
4856
4185
|
$metadata: deserializeMetadata(output),
|
|
4857
|
-
|
|
4858
|
-
ExtensionArn: undefined,
|
|
4859
|
-
ExtensionVersionNumber: undefined,
|
|
4860
|
-
Id: undefined,
|
|
4861
|
-
Parameters: undefined,
|
|
4862
|
-
ResourceArn: undefined,
|
|
4863
|
-
};
|
|
4186
|
+
});
|
|
4864
4187
|
_a = __expectNonNull;
|
|
4865
4188
|
_b = __expectObject;
|
|
4866
4189
|
return [4, parseBody(output.body, context)];
|
|
4867
4190
|
case 1:
|
|
4868
4191
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4869
|
-
if (data.Arn
|
|
4192
|
+
if (data.Arn != null) {
|
|
4870
4193
|
contents.Arn = __expectString(data.Arn);
|
|
4871
4194
|
}
|
|
4872
|
-
if (data.ExtensionArn
|
|
4195
|
+
if (data.ExtensionArn != null) {
|
|
4873
4196
|
contents.ExtensionArn = __expectString(data.ExtensionArn);
|
|
4874
4197
|
}
|
|
4875
|
-
if (data.ExtensionVersionNumber
|
|
4198
|
+
if (data.ExtensionVersionNumber != null) {
|
|
4876
4199
|
contents.ExtensionVersionNumber = __expectInt32(data.ExtensionVersionNumber);
|
|
4877
4200
|
}
|
|
4878
|
-
if (data.Id
|
|
4201
|
+
if (data.Id != null) {
|
|
4879
4202
|
contents.Id = __expectString(data.Id);
|
|
4880
4203
|
}
|
|
4881
|
-
if (data.Parameters
|
|
4204
|
+
if (data.Parameters != null) {
|
|
4882
4205
|
contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
|
|
4883
4206
|
}
|
|
4884
|
-
if (data.ResourceArn
|
|
4207
|
+
if (data.ResourceArn != null) {
|
|
4885
4208
|
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
4886
4209
|
}
|
|
4887
|
-
return [2,
|
|
4210
|
+
return [2, contents];
|
|
4888
4211
|
}
|
|
4889
4212
|
});
|
|
4890
4213
|
}); };
|
|
4891
4214
|
var deserializeAws_restJson1UpdateExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4892
|
-
var parsedOutput, _a,
|
|
4215
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4893
4216
|
var _c;
|
|
4894
4217
|
return __generator(this, function (_d) {
|
|
4895
4218
|
switch (_d.label) {
|
|
@@ -4918,14 +4241,14 @@ var deserializeAws_restJson1UpdateExtensionAssociationCommandError = function (o
|
|
|
4918
4241
|
case 7: throw _d.sent();
|
|
4919
4242
|
case 8:
|
|
4920
4243
|
parsedBody = parsedOutput.body;
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
$metadata: $metadata,
|
|
4244
|
+
throwDefaultError({
|
|
4245
|
+
output: output,
|
|
4246
|
+
parsedBody: parsedBody,
|
|
4247
|
+
exceptionCtor: __BaseException,
|
|
4248
|
+
errorCode: errorCode,
|
|
4927
4249
|
});
|
|
4928
|
-
|
|
4250
|
+
_d.label = 9;
|
|
4251
|
+
case 9: return [2];
|
|
4929
4252
|
}
|
|
4930
4253
|
});
|
|
4931
4254
|
}); };
|
|
@@ -4937,18 +4260,18 @@ export var deserializeAws_restJson1ValidateConfigurationCommand = function (outp
|
|
|
4937
4260
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4938
4261
|
return [2, deserializeAws_restJson1ValidateConfigurationCommandError(output, context)];
|
|
4939
4262
|
}
|
|
4940
|
-
contents = {
|
|
4263
|
+
contents = map({
|
|
4941
4264
|
$metadata: deserializeMetadata(output),
|
|
4942
|
-
};
|
|
4265
|
+
});
|
|
4943
4266
|
return [4, collectBody(output.body, context)];
|
|
4944
4267
|
case 1:
|
|
4945
4268
|
_a.sent();
|
|
4946
|
-
return [2,
|
|
4269
|
+
return [2, contents];
|
|
4947
4270
|
}
|
|
4948
4271
|
});
|
|
4949
4272
|
}); };
|
|
4950
4273
|
var deserializeAws_restJson1ValidateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4951
|
-
var parsedOutput, _a,
|
|
4274
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4952
4275
|
var _c;
|
|
4953
4276
|
return __generator(this, function (_d) {
|
|
4954
4277
|
switch (_d.label) {
|
|
@@ -4977,29 +4300,30 @@ var deserializeAws_restJson1ValidateConfigurationCommandError = function (output
|
|
|
4977
4300
|
case 7: throw _d.sent();
|
|
4978
4301
|
case 8:
|
|
4979
4302
|
parsedBody = parsedOutput.body;
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
$metadata: $metadata,
|
|
4303
|
+
throwDefaultError({
|
|
4304
|
+
output: output,
|
|
4305
|
+
parsedBody: parsedBody,
|
|
4306
|
+
exceptionCtor: __BaseException,
|
|
4307
|
+
errorCode: errorCode,
|
|
4986
4308
|
});
|
|
4987
|
-
|
|
4309
|
+
_d.label = 9;
|
|
4310
|
+
case 9: return [2];
|
|
4988
4311
|
}
|
|
4989
4312
|
});
|
|
4990
4313
|
}); };
|
|
4314
|
+
var map = __map;
|
|
4991
4315
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4992
4316
|
var contents, data, exception;
|
|
4993
4317
|
return __generator(this, function (_a) {
|
|
4994
|
-
contents = {};
|
|
4318
|
+
contents = map({});
|
|
4995
4319
|
data = parsedOutput.body;
|
|
4996
|
-
if (data.Details
|
|
4320
|
+
if (data.Details != null) {
|
|
4997
4321
|
contents.Details = deserializeAws_restJson1BadRequestDetails(__expectUnion(data.Details), context);
|
|
4998
4322
|
}
|
|
4999
|
-
if (data.Message
|
|
4323
|
+
if (data.Message != null) {
|
|
5000
4324
|
contents.Message = __expectString(data.Message);
|
|
5001
4325
|
}
|
|
5002
|
-
if (data.Reason
|
|
4326
|
+
if (data.Reason != null) {
|
|
5003
4327
|
contents.Reason = __expectString(data.Reason);
|
|
5004
4328
|
}
|
|
5005
4329
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5009,9 +4333,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
5009
4333
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5010
4334
|
var contents, data, exception;
|
|
5011
4335
|
return __generator(this, function (_a) {
|
|
5012
|
-
contents = {};
|
|
4336
|
+
contents = map({});
|
|
5013
4337
|
data = parsedOutput.body;
|
|
5014
|
-
if (data.Message
|
|
4338
|
+
if (data.Message != null) {
|
|
5015
4339
|
contents.Message = __expectString(data.Message);
|
|
5016
4340
|
}
|
|
5017
4341
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5021,9 +4345,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
5021
4345
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5022
4346
|
var contents, data, exception;
|
|
5023
4347
|
return __generator(this, function (_a) {
|
|
5024
|
-
contents = {};
|
|
4348
|
+
contents = map({});
|
|
5025
4349
|
data = parsedOutput.body;
|
|
5026
|
-
if (data.Message
|
|
4350
|
+
if (data.Message != null) {
|
|
5027
4351
|
contents.Message = __expectString(data.Message);
|
|
5028
4352
|
}
|
|
5029
4353
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5033,18 +4357,18 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
5033
4357
|
var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5034
4358
|
var contents, data, exception;
|
|
5035
4359
|
return __generator(this, function (_a) {
|
|
5036
|
-
contents = {};
|
|
4360
|
+
contents = map({});
|
|
5037
4361
|
data = parsedOutput.body;
|
|
5038
|
-
if (data.Limit
|
|
4362
|
+
if (data.Limit != null) {
|
|
5039
4363
|
contents.Limit = __limitedParseFloat32(data.Limit);
|
|
5040
4364
|
}
|
|
5041
|
-
if (data.Measure
|
|
4365
|
+
if (data.Measure != null) {
|
|
5042
4366
|
contents.Measure = __expectString(data.Measure);
|
|
5043
4367
|
}
|
|
5044
|
-
if (data.Message
|
|
4368
|
+
if (data.Message != null) {
|
|
5045
4369
|
contents.Message = __expectString(data.Message);
|
|
5046
4370
|
}
|
|
5047
|
-
if (data.Size
|
|
4371
|
+
if (data.Size != null) {
|
|
5048
4372
|
contents.Size = __limitedParseFloat32(data.Size);
|
|
5049
4373
|
}
|
|
5050
4374
|
exception = new PayloadTooLargeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5054,12 +4378,12 @@ var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedO
|
|
|
5054
4378
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5055
4379
|
var contents, data, exception;
|
|
5056
4380
|
return __generator(this, function (_a) {
|
|
5057
|
-
contents = {};
|
|
4381
|
+
contents = map({});
|
|
5058
4382
|
data = parsedOutput.body;
|
|
5059
|
-
if (data.Message
|
|
4383
|
+
if (data.Message != null) {
|
|
5060
4384
|
contents.Message = __expectString(data.Message);
|
|
5061
4385
|
}
|
|
5062
|
-
if (data.ResourceName
|
|
4386
|
+
if (data.ResourceName != null) {
|
|
5063
4387
|
contents.ResourceName = __expectString(data.ResourceName);
|
|
5064
4388
|
}
|
|
5065
4389
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5069,9 +4393,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
5069
4393
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5070
4394
|
var contents, data, exception;
|
|
5071
4395
|
return __generator(this, function (_a) {
|
|
5072
|
-
contents = {};
|
|
4396
|
+
contents = map({});
|
|
5073
4397
|
data = parsedOutput.body;
|
|
5074
|
-
if (data.Message
|
|
4398
|
+
if (data.Message != null) {
|
|
5075
4399
|
contents.Message = __expectString(data.Message);
|
|
5076
4400
|
}
|
|
5077
4401
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5085,9 +4409,6 @@ var serializeAws_restJson1ActionList = function (input, context) {
|
|
|
5085
4409
|
return input
|
|
5086
4410
|
.filter(function (e) { return e != null; })
|
|
5087
4411
|
.map(function (entry) {
|
|
5088
|
-
if (entry === null) {
|
|
5089
|
-
return null;
|
|
5090
|
-
}
|
|
5091
4412
|
return serializeAws_restJson1Action(entry, context);
|
|
5092
4413
|
});
|
|
5093
4414
|
};
|
|
@@ -5108,9 +4429,6 @@ var serializeAws_restJson1MonitorList = function (input, context) {
|
|
|
5108
4429
|
return input
|
|
5109
4430
|
.filter(function (e) { return e != null; })
|
|
5110
4431
|
.map(function (entry) {
|
|
5111
|
-
if (entry === null) {
|
|
5112
|
-
return null;
|
|
5113
|
-
}
|
|
5114
4432
|
return serializeAws_restJson1Monitor(entry, context);
|
|
5115
4433
|
});
|
|
5116
4434
|
};
|
|
@@ -5154,9 +4472,6 @@ var serializeAws_restJson1ValidatorList = function (input, context) {
|
|
|
5154
4472
|
return input
|
|
5155
4473
|
.filter(function (e) { return e != null; })
|
|
5156
4474
|
.map(function (entry) {
|
|
5157
|
-
if (entry === null) {
|
|
5158
|
-
return null;
|
|
5159
|
-
}
|
|
5160
4475
|
return serializeAws_restJson1Validator(entry, context);
|
|
5161
4476
|
});
|
|
5162
4477
|
};
|
|
@@ -5249,7 +4564,7 @@ var deserializeAws_restJson1AppliedExtensions = function (output, context) {
|
|
|
5249
4564
|
return retVal;
|
|
5250
4565
|
};
|
|
5251
4566
|
var deserializeAws_restJson1BadRequestDetails = function (output, context) {
|
|
5252
|
-
if (output.InvalidConfiguration
|
|
4567
|
+
if (output.InvalidConfiguration != null) {
|
|
5253
4568
|
return {
|
|
5254
4569
|
InvalidConfiguration: deserializeAws_restJson1InvalidConfigurationDetailList(output.InvalidConfiguration, context),
|
|
5255
4570
|
};
|