@aws-sdk/client-appconfig 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +220 -207
- package/dist-es/protocols/Aws_restJson1.js +186 -173
- package/package.json +26 -26
|
@@ -14,9 +14,9 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.Description
|
|
18
|
-
...(input.Name
|
|
19
|
-
...(input.Tags
|
|
17
|
+
...(input.Description != null && { Description: input.Description }),
|
|
18
|
+
...(input.Name != null && { Name: input.Name }),
|
|
19
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
20
20
|
});
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
@@ -48,15 +48,13 @@ const serializeAws_restJson1CreateConfigurationProfileCommand = async (input, co
|
|
|
48
48
|
}
|
|
49
49
|
let body;
|
|
50
50
|
body = JSON.stringify({
|
|
51
|
-
...(input.Description
|
|
52
|
-
...(input.LocationUri
|
|
53
|
-
...(input.Name
|
|
54
|
-
...(input.RetrievalRoleArn
|
|
55
|
-
|
|
56
|
-
...(input.
|
|
57
|
-
...(input.
|
|
58
|
-
...(input.Validators !== undefined &&
|
|
59
|
-
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
|
|
51
|
+
...(input.Description != null && { Description: input.Description }),
|
|
52
|
+
...(input.LocationUri != null && { LocationUri: input.LocationUri }),
|
|
53
|
+
...(input.Name != null && { Name: input.Name }),
|
|
54
|
+
...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
|
|
55
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
56
|
+
...(input.Type != null && { Type: input.Type }),
|
|
57
|
+
...(input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
|
|
60
58
|
});
|
|
61
59
|
return new protocol_http_1.HttpRequest({
|
|
62
60
|
protocol,
|
|
@@ -77,17 +75,16 @@ const serializeAws_restJson1CreateDeploymentStrategyCommand = async (input, cont
|
|
|
77
75
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies";
|
|
78
76
|
let body;
|
|
79
77
|
body = JSON.stringify({
|
|
80
|
-
...(input.DeploymentDurationInMinutes
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
...(input.
|
|
84
|
-
|
|
85
|
-
...(input.GrowthFactor
|
|
86
|
-
|
|
87
|
-
...(input.
|
|
88
|
-
...(input.
|
|
89
|
-
...(input.
|
|
90
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
78
|
+
...(input.DeploymentDurationInMinutes != null && {
|
|
79
|
+
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
80
|
+
}),
|
|
81
|
+
...(input.Description != null && { Description: input.Description }),
|
|
82
|
+
...(input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
|
|
83
|
+
...(input.GrowthFactor != null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
|
|
84
|
+
...(input.GrowthType != null && { GrowthType: input.GrowthType }),
|
|
85
|
+
...(input.Name != null && { Name: input.Name }),
|
|
86
|
+
...(input.ReplicateTo != null && { ReplicateTo: input.ReplicateTo }),
|
|
87
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
91
88
|
});
|
|
92
89
|
return new protocol_http_1.HttpRequest({
|
|
93
90
|
protocol,
|
|
@@ -119,11 +116,10 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
119
116
|
}
|
|
120
117
|
let body;
|
|
121
118
|
body = JSON.stringify({
|
|
122
|
-
...(input.Description
|
|
123
|
-
...(input.Monitors
|
|
124
|
-
|
|
125
|
-
...(input.
|
|
126
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
119
|
+
...(input.Description != null && { Description: input.Description }),
|
|
120
|
+
...(input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) }),
|
|
121
|
+
...(input.Name != null && { Name: input.Name }),
|
|
122
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
127
123
|
});
|
|
128
124
|
return new protocol_http_1.HttpRequest({
|
|
129
125
|
protocol,
|
|
@@ -878,14 +874,11 @@ const serializeAws_restJson1StartDeploymentCommand = async (input, context) => {
|
|
|
878
874
|
}
|
|
879
875
|
let body;
|
|
880
876
|
body = JSON.stringify({
|
|
881
|
-
...(input.ConfigurationProfileId
|
|
882
|
-
|
|
883
|
-
...(input.
|
|
884
|
-
|
|
885
|
-
...(input.
|
|
886
|
-
input.DeploymentStrategyId !== null && { DeploymentStrategyId: input.DeploymentStrategyId }),
|
|
887
|
-
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
888
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
877
|
+
...(input.ConfigurationProfileId != null && { ConfigurationProfileId: input.ConfigurationProfileId }),
|
|
878
|
+
...(input.ConfigurationVersion != null && { ConfigurationVersion: input.ConfigurationVersion }),
|
|
879
|
+
...(input.DeploymentStrategyId != null && { DeploymentStrategyId: input.DeploymentStrategyId }),
|
|
880
|
+
...(input.Description != null && { Description: input.Description }),
|
|
881
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
889
882
|
});
|
|
890
883
|
return new protocol_http_1.HttpRequest({
|
|
891
884
|
protocol,
|
|
@@ -963,7 +956,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
963
956
|
}
|
|
964
957
|
let body;
|
|
965
958
|
body = JSON.stringify({
|
|
966
|
-
...(input.Tags
|
|
959
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
967
960
|
});
|
|
968
961
|
return new protocol_http_1.HttpRequest({
|
|
969
962
|
protocol,
|
|
@@ -1024,8 +1017,8 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
1024
1017
|
}
|
|
1025
1018
|
let body;
|
|
1026
1019
|
body = JSON.stringify({
|
|
1027
|
-
...(input.Description
|
|
1028
|
-
...(input.Name
|
|
1020
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1021
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1029
1022
|
});
|
|
1030
1023
|
return new protocol_http_1.HttpRequest({
|
|
1031
1024
|
protocol,
|
|
@@ -1067,12 +1060,10 @@ const serializeAws_restJson1UpdateConfigurationProfileCommand = async (input, co
|
|
|
1067
1060
|
}
|
|
1068
1061
|
let body;
|
|
1069
1062
|
body = JSON.stringify({
|
|
1070
|
-
...(input.Description
|
|
1071
|
-
...(input.Name
|
|
1072
|
-
...(input.RetrievalRoleArn
|
|
1073
|
-
|
|
1074
|
-
...(input.Validators !== undefined &&
|
|
1075
|
-
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
|
|
1063
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1064
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1065
|
+
...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
|
|
1066
|
+
...(input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
|
|
1076
1067
|
});
|
|
1077
1068
|
return new protocol_http_1.HttpRequest({
|
|
1078
1069
|
protocol,
|
|
@@ -1104,14 +1095,13 @@ const serializeAws_restJson1UpdateDeploymentStrategyCommand = async (input, cont
|
|
|
1104
1095
|
}
|
|
1105
1096
|
let body;
|
|
1106
1097
|
body = JSON.stringify({
|
|
1107
|
-
...(input.DeploymentDurationInMinutes
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
...(input.
|
|
1111
|
-
|
|
1112
|
-
...(input.GrowthFactor
|
|
1113
|
-
|
|
1114
|
-
...(input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType }),
|
|
1098
|
+
...(input.DeploymentDurationInMinutes != null && {
|
|
1099
|
+
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
1100
|
+
}),
|
|
1101
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1102
|
+
...(input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
|
|
1103
|
+
...(input.GrowthFactor != null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
|
|
1104
|
+
...(input.GrowthType != null && { GrowthType: input.GrowthType }),
|
|
1115
1105
|
});
|
|
1116
1106
|
return new protocol_http_1.HttpRequest({
|
|
1117
1107
|
protocol,
|
|
@@ -1153,10 +1143,9 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
1153
1143
|
}
|
|
1154
1144
|
let body;
|
|
1155
1145
|
body = JSON.stringify({
|
|
1156
|
-
...(input.Description
|
|
1157
|
-
...(input.Monitors
|
|
1158
|
-
|
|
1159
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
1146
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1147
|
+
...(input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) }),
|
|
1148
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1160
1149
|
});
|
|
1161
1150
|
return new protocol_http_1.HttpRequest({
|
|
1162
1151
|
protocol,
|
|
@@ -1239,8 +1228,7 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1239
1228
|
body: await parseBody(output.body, context),
|
|
1240
1229
|
};
|
|
1241
1230
|
let response;
|
|
1242
|
-
|
|
1243
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
1232
|
switch (errorCode) {
|
|
1245
1233
|
case "BadRequestException":
|
|
1246
1234
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1250,10 +1238,12 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1250
1238
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1251
1239
|
default:
|
|
1252
1240
|
const parsedBody = parsedOutput.body;
|
|
1241
|
+
const $metadata = deserializeMetadata(output);
|
|
1242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1253
1243
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1254
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1255
1245
|
$fault: "client",
|
|
1256
|
-
$metadata
|
|
1246
|
+
$metadata,
|
|
1257
1247
|
});
|
|
1258
1248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1259
1249
|
}
|
|
@@ -1307,8 +1297,7 @@ const deserializeAws_restJson1CreateConfigurationProfileCommandError = async (ou
|
|
|
1307
1297
|
body: await parseBody(output.body, context),
|
|
1308
1298
|
};
|
|
1309
1299
|
let response;
|
|
1310
|
-
|
|
1311
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
1301
|
switch (errorCode) {
|
|
1313
1302
|
case "BadRequestException":
|
|
1314
1303
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1321,10 +1310,12 @@ const deserializeAws_restJson1CreateConfigurationProfileCommandError = async (ou
|
|
|
1321
1310
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1322
1311
|
default:
|
|
1323
1312
|
const parsedBody = parsedOutput.body;
|
|
1313
|
+
const $metadata = deserializeMetadata(output);
|
|
1314
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1324
1315
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1316
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1326
1317
|
$fault: "client",
|
|
1327
|
-
$metadata
|
|
1318
|
+
$metadata,
|
|
1328
1319
|
});
|
|
1329
1320
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1330
1321
|
}
|
|
@@ -1378,8 +1369,7 @@ const deserializeAws_restJson1CreateDeploymentStrategyCommandError = async (outp
|
|
|
1378
1369
|
body: await parseBody(output.body, context),
|
|
1379
1370
|
};
|
|
1380
1371
|
let response;
|
|
1381
|
-
|
|
1382
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
1373
|
switch (errorCode) {
|
|
1384
1374
|
case "BadRequestException":
|
|
1385
1375
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1389,10 +1379,12 @@ const deserializeAws_restJson1CreateDeploymentStrategyCommandError = async (outp
|
|
|
1389
1379
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1390
1380
|
default:
|
|
1391
1381
|
const parsedBody = parsedOutput.body;
|
|
1382
|
+
const $metadata = deserializeMetadata(output);
|
|
1383
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1392
1384
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1385
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1394
1386
|
$fault: "client",
|
|
1395
|
-
$metadata
|
|
1387
|
+
$metadata,
|
|
1396
1388
|
});
|
|
1397
1389
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1398
1390
|
}
|
|
@@ -1438,8 +1430,7 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1438
1430
|
body: await parseBody(output.body, context),
|
|
1439
1431
|
};
|
|
1440
1432
|
let response;
|
|
1441
|
-
|
|
1442
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1434
|
switch (errorCode) {
|
|
1444
1435
|
case "BadRequestException":
|
|
1445
1436
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1452,10 +1443,12 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1452
1443
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1453
1444
|
default:
|
|
1454
1445
|
const parsedBody = parsedOutput.body;
|
|
1446
|
+
const $metadata = deserializeMetadata(output);
|
|
1447
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1455
1448
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1456
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1449
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1457
1450
|
$fault: "client",
|
|
1458
|
-
$metadata
|
|
1451
|
+
$metadata,
|
|
1459
1452
|
});
|
|
1460
1453
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1461
1454
|
}
|
|
@@ -1499,8 +1492,7 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
|
|
|
1499
1492
|
body: await parseBody(output.body, context),
|
|
1500
1493
|
};
|
|
1501
1494
|
let response;
|
|
1502
|
-
|
|
1503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1496
|
switch (errorCode) {
|
|
1505
1497
|
case "BadRequestException":
|
|
1506
1498
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1522,10 +1514,12 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
|
|
|
1522
1514
|
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1523
1515
|
default:
|
|
1524
1516
|
const parsedBody = parsedOutput.body;
|
|
1517
|
+
const $metadata = deserializeMetadata(output);
|
|
1518
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1525
1519
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1526
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1520
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1527
1521
|
$fault: "client",
|
|
1528
|
-
$metadata
|
|
1522
|
+
$metadata,
|
|
1529
1523
|
});
|
|
1530
1524
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1531
1525
|
}
|
|
@@ -1547,8 +1541,7 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1547
1541
|
body: await parseBody(output.body, context),
|
|
1548
1542
|
};
|
|
1549
1543
|
let response;
|
|
1550
|
-
|
|
1551
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
1545
|
switch (errorCode) {
|
|
1553
1546
|
case "BadRequestException":
|
|
1554
1547
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1561,10 +1554,12 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1561
1554
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1562
1555
|
default:
|
|
1563
1556
|
const parsedBody = parsedOutput.body;
|
|
1557
|
+
const $metadata = deserializeMetadata(output);
|
|
1558
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1564
1559
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1566
1561
|
$fault: "client",
|
|
1567
|
-
$metadata
|
|
1562
|
+
$metadata,
|
|
1568
1563
|
});
|
|
1569
1564
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1570
1565
|
}
|
|
@@ -1586,8 +1581,7 @@ const deserializeAws_restJson1DeleteConfigurationProfileCommandError = async (ou
|
|
|
1586
1581
|
body: await parseBody(output.body, context),
|
|
1587
1582
|
};
|
|
1588
1583
|
let response;
|
|
1589
|
-
|
|
1590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
1585
|
switch (errorCode) {
|
|
1592
1586
|
case "BadRequestException":
|
|
1593
1587
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1603,10 +1597,12 @@ const deserializeAws_restJson1DeleteConfigurationProfileCommandError = async (ou
|
|
|
1603
1597
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1604
1598
|
default:
|
|
1605
1599
|
const parsedBody = parsedOutput.body;
|
|
1600
|
+
const $metadata = deserializeMetadata(output);
|
|
1601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1606
1602
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1607
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1608
1604
|
$fault: "client",
|
|
1609
|
-
$metadata
|
|
1605
|
+
$metadata,
|
|
1610
1606
|
});
|
|
1611
1607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1612
1608
|
}
|
|
@@ -1628,8 +1624,7 @@ const deserializeAws_restJson1DeleteDeploymentStrategyCommandError = async (outp
|
|
|
1628
1624
|
body: await parseBody(output.body, context),
|
|
1629
1625
|
};
|
|
1630
1626
|
let response;
|
|
1631
|
-
|
|
1632
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
1628
|
switch (errorCode) {
|
|
1634
1629
|
case "BadRequestException":
|
|
1635
1630
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1642,10 +1637,12 @@ const deserializeAws_restJson1DeleteDeploymentStrategyCommandError = async (outp
|
|
|
1642
1637
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1643
1638
|
default:
|
|
1644
1639
|
const parsedBody = parsedOutput.body;
|
|
1640
|
+
const $metadata = deserializeMetadata(output);
|
|
1641
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1645
1642
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1646
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1643
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1647
1644
|
$fault: "client",
|
|
1648
|
-
$metadata
|
|
1645
|
+
$metadata,
|
|
1649
1646
|
});
|
|
1650
1647
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1651
1648
|
}
|
|
@@ -1667,8 +1664,7 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1667
1664
|
body: await parseBody(output.body, context),
|
|
1668
1665
|
};
|
|
1669
1666
|
let response;
|
|
1670
|
-
|
|
1671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1668
|
switch (errorCode) {
|
|
1673
1669
|
case "BadRequestException":
|
|
1674
1670
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1684,10 +1680,12 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1684
1680
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1685
1681
|
default:
|
|
1686
1682
|
const parsedBody = parsedOutput.body;
|
|
1683
|
+
const $metadata = deserializeMetadata(output);
|
|
1684
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1687
1685
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1688
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1689
1687
|
$fault: "client",
|
|
1690
|
-
$metadata
|
|
1688
|
+
$metadata,
|
|
1691
1689
|
});
|
|
1692
1690
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1693
1691
|
}
|
|
@@ -1709,8 +1707,7 @@ const deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = asy
|
|
|
1709
1707
|
body: await parseBody(output.body, context),
|
|
1710
1708
|
};
|
|
1711
1709
|
let response;
|
|
1712
|
-
|
|
1713
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
1711
|
switch (errorCode) {
|
|
1715
1712
|
case "BadRequestException":
|
|
1716
1713
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1723,10 +1720,12 @@ const deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = asy
|
|
|
1723
1720
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1724
1721
|
default:
|
|
1725
1722
|
const parsedBody = parsedOutput.body;
|
|
1723
|
+
const $metadata = deserializeMetadata(output);
|
|
1724
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1726
1725
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1727
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1728
1727
|
$fault: "client",
|
|
1729
|
-
$metadata
|
|
1728
|
+
$metadata,
|
|
1730
1729
|
});
|
|
1731
1730
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1732
1731
|
}
|
|
@@ -1760,8 +1759,7 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1760
1759
|
body: await parseBody(output.body, context),
|
|
1761
1760
|
};
|
|
1762
1761
|
let response;
|
|
1763
|
-
|
|
1764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1763
|
switch (errorCode) {
|
|
1766
1764
|
case "BadRequestException":
|
|
1767
1765
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1774,10 +1772,12 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1774
1772
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1775
1773
|
default:
|
|
1776
1774
|
const parsedBody = parsedOutput.body;
|
|
1775
|
+
const $metadata = deserializeMetadata(output);
|
|
1776
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1777
1777
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1778
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1779
1779
|
$fault: "client",
|
|
1780
|
-
$metadata
|
|
1780
|
+
$metadata,
|
|
1781
1781
|
});
|
|
1782
1782
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1783
1783
|
}
|
|
@@ -1809,8 +1809,7 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1809
1809
|
body: await parseBody(output.body, context),
|
|
1810
1810
|
};
|
|
1811
1811
|
let response;
|
|
1812
|
-
|
|
1813
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
1813
|
switch (errorCode) {
|
|
1815
1814
|
case "BadRequestException":
|
|
1816
1815
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1823,10 +1822,12 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1823
1822
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1824
1823
|
default:
|
|
1825
1824
|
const parsedBody = parsedOutput.body;
|
|
1825
|
+
const $metadata = deserializeMetadata(output);
|
|
1826
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1826
1827
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1827
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1828
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1828
1829
|
$fault: "client",
|
|
1829
|
-
$metadata
|
|
1830
|
+
$metadata,
|
|
1830
1831
|
});
|
|
1831
1832
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1832
1833
|
}
|
|
@@ -1880,8 +1881,7 @@ const deserializeAws_restJson1GetConfigurationProfileCommandError = async (outpu
|
|
|
1880
1881
|
body: await parseBody(output.body, context),
|
|
1881
1882
|
};
|
|
1882
1883
|
let response;
|
|
1883
|
-
|
|
1884
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
1885
|
switch (errorCode) {
|
|
1886
1886
|
case "BadRequestException":
|
|
1887
1887
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -1894,10 +1894,12 @@ const deserializeAws_restJson1GetConfigurationProfileCommandError = async (outpu
|
|
|
1894
1894
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1895
1895
|
default:
|
|
1896
1896
|
const parsedBody = parsedOutput.body;
|
|
1897
|
+
const $metadata = deserializeMetadata(output);
|
|
1898
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1897
1899
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1898
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1900
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1899
1901
|
$fault: "client",
|
|
1900
|
-
$metadata
|
|
1902
|
+
$metadata,
|
|
1901
1903
|
});
|
|
1902
1904
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1903
1905
|
}
|
|
@@ -1991,8 +1993,7 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1991
1993
|
body: await parseBody(output.body, context),
|
|
1992
1994
|
};
|
|
1993
1995
|
let response;
|
|
1994
|
-
|
|
1995
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1996
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1996
1997
|
switch (errorCode) {
|
|
1997
1998
|
case "BadRequestException":
|
|
1998
1999
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2005,10 +2006,12 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
2005
2006
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2006
2007
|
default:
|
|
2007
2008
|
const parsedBody = parsedOutput.body;
|
|
2009
|
+
const $metadata = deserializeMetadata(output);
|
|
2010
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2008
2011
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2010
2013
|
$fault: "client",
|
|
2011
|
-
$metadata
|
|
2014
|
+
$metadata,
|
|
2012
2015
|
});
|
|
2013
2016
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2014
2017
|
}
|
|
@@ -2062,8 +2065,7 @@ const deserializeAws_restJson1GetDeploymentStrategyCommandError = async (output,
|
|
|
2062
2065
|
body: await parseBody(output.body, context),
|
|
2063
2066
|
};
|
|
2064
2067
|
let response;
|
|
2065
|
-
|
|
2066
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
2069
|
switch (errorCode) {
|
|
2068
2070
|
case "BadRequestException":
|
|
2069
2071
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2076,10 +2078,12 @@ const deserializeAws_restJson1GetDeploymentStrategyCommandError = async (output,
|
|
|
2076
2078
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2077
2079
|
default:
|
|
2078
2080
|
const parsedBody = parsedOutput.body;
|
|
2081
|
+
const $metadata = deserializeMetadata(output);
|
|
2082
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2079
2083
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2080
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2084
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2081
2085
|
$fault: "client",
|
|
2082
|
-
$metadata
|
|
2086
|
+
$metadata,
|
|
2083
2087
|
});
|
|
2084
2088
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2085
2089
|
}
|
|
@@ -2125,8 +2129,7 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2125
2129
|
body: await parseBody(output.body, context),
|
|
2126
2130
|
};
|
|
2127
2131
|
let response;
|
|
2128
|
-
|
|
2129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2130
2133
|
switch (errorCode) {
|
|
2131
2134
|
case "BadRequestException":
|
|
2132
2135
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2139,10 +2142,12 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2139
2142
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2140
2143
|
default:
|
|
2141
2144
|
const parsedBody = parsedOutput.body;
|
|
2145
|
+
const $metadata = deserializeMetadata(output);
|
|
2146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2142
2147
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2143
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2144
2149
|
$fault: "client",
|
|
2145
|
-
$metadata
|
|
2150
|
+
$metadata,
|
|
2146
2151
|
});
|
|
2147
2152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2148
2153
|
}
|
|
@@ -2186,8 +2191,7 @@ const deserializeAws_restJson1GetHostedConfigurationVersionCommandError = async
|
|
|
2186
2191
|
body: await parseBody(output.body, context),
|
|
2187
2192
|
};
|
|
2188
2193
|
let response;
|
|
2189
|
-
|
|
2190
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
2195
|
switch (errorCode) {
|
|
2192
2196
|
case "BadRequestException":
|
|
2193
2197
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2200,10 +2204,12 @@ const deserializeAws_restJson1GetHostedConfigurationVersionCommandError = async
|
|
|
2200
2204
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2201
2205
|
default:
|
|
2202
2206
|
const parsedBody = parsedOutput.body;
|
|
2207
|
+
const $metadata = deserializeMetadata(output);
|
|
2208
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2203
2209
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2204
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2210
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2205
2211
|
$fault: "client",
|
|
2206
|
-
$metadata
|
|
2212
|
+
$metadata,
|
|
2207
2213
|
});
|
|
2208
2214
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2209
2215
|
}
|
|
@@ -2233,8 +2239,7 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2233
2239
|
body: await parseBody(output.body, context),
|
|
2234
2240
|
};
|
|
2235
2241
|
let response;
|
|
2236
|
-
|
|
2237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
2243
|
switch (errorCode) {
|
|
2239
2244
|
case "BadRequestException":
|
|
2240
2245
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2244,10 +2249,12 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2244
2249
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2245
2250
|
default:
|
|
2246
2251
|
const parsedBody = parsedOutput.body;
|
|
2252
|
+
const $metadata = deserializeMetadata(output);
|
|
2253
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2247
2254
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2248
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2255
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2249
2256
|
$fault: "client",
|
|
2250
|
-
$metadata
|
|
2257
|
+
$metadata,
|
|
2251
2258
|
});
|
|
2252
2259
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2253
2260
|
}
|
|
@@ -2277,8 +2284,7 @@ const deserializeAws_restJson1ListConfigurationProfilesCommandError = async (out
|
|
|
2277
2284
|
body: await parseBody(output.body, context),
|
|
2278
2285
|
};
|
|
2279
2286
|
let response;
|
|
2280
|
-
|
|
2281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2288
|
switch (errorCode) {
|
|
2283
2289
|
case "BadRequestException":
|
|
2284
2290
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2291,10 +2297,12 @@ const deserializeAws_restJson1ListConfigurationProfilesCommandError = async (out
|
|
|
2291
2297
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2292
2298
|
default:
|
|
2293
2299
|
const parsedBody = parsedOutput.body;
|
|
2300
|
+
const $metadata = deserializeMetadata(output);
|
|
2301
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2294
2302
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2295
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2303
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2296
2304
|
$fault: "client",
|
|
2297
|
-
$metadata
|
|
2305
|
+
$metadata,
|
|
2298
2306
|
});
|
|
2299
2307
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2300
2308
|
}
|
|
@@ -2324,8 +2332,7 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2324
2332
|
body: await parseBody(output.body, context),
|
|
2325
2333
|
};
|
|
2326
2334
|
let response;
|
|
2327
|
-
|
|
2328
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2335
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
2336
|
switch (errorCode) {
|
|
2330
2337
|
case "BadRequestException":
|
|
2331
2338
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2338,10 +2345,12 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2338
2345
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2339
2346
|
default:
|
|
2340
2347
|
const parsedBody = parsedOutput.body;
|
|
2348
|
+
const $metadata = deserializeMetadata(output);
|
|
2349
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2341
2350
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2343
2352
|
$fault: "client",
|
|
2344
|
-
$metadata
|
|
2353
|
+
$metadata,
|
|
2345
2354
|
});
|
|
2346
2355
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2347
2356
|
}
|
|
@@ -2371,8 +2380,7 @@ const deserializeAws_restJson1ListDeploymentStrategiesCommandError = async (outp
|
|
|
2371
2380
|
body: await parseBody(output.body, context),
|
|
2372
2381
|
};
|
|
2373
2382
|
let response;
|
|
2374
|
-
|
|
2375
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
2384
|
switch (errorCode) {
|
|
2377
2385
|
case "BadRequestException":
|
|
2378
2386
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2382,10 +2390,12 @@ const deserializeAws_restJson1ListDeploymentStrategiesCommandError = async (outp
|
|
|
2382
2390
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2383
2391
|
default:
|
|
2384
2392
|
const parsedBody = parsedOutput.body;
|
|
2393
|
+
const $metadata = deserializeMetadata(output);
|
|
2394
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2385
2395
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2396
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2387
2397
|
$fault: "client",
|
|
2388
|
-
$metadata
|
|
2398
|
+
$metadata,
|
|
2389
2399
|
});
|
|
2390
2400
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2391
2401
|
}
|
|
@@ -2415,8 +2425,7 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2415
2425
|
body: await parseBody(output.body, context),
|
|
2416
2426
|
};
|
|
2417
2427
|
let response;
|
|
2418
|
-
|
|
2419
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2420
2429
|
switch (errorCode) {
|
|
2421
2430
|
case "BadRequestException":
|
|
2422
2431
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2429,10 +2438,12 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2429
2438
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2430
2439
|
default:
|
|
2431
2440
|
const parsedBody = parsedOutput.body;
|
|
2441
|
+
const $metadata = deserializeMetadata(output);
|
|
2442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2432
2443
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2433
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2434
2445
|
$fault: "client",
|
|
2435
|
-
$metadata
|
|
2446
|
+
$metadata,
|
|
2436
2447
|
});
|
|
2437
2448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2438
2449
|
}
|
|
@@ -2462,8 +2473,7 @@ const deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = asyn
|
|
|
2462
2473
|
body: await parseBody(output.body, context),
|
|
2463
2474
|
};
|
|
2464
2475
|
let response;
|
|
2465
|
-
|
|
2466
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
2477
|
switch (errorCode) {
|
|
2468
2478
|
case "BadRequestException":
|
|
2469
2479
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2476,10 +2486,12 @@ const deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = asyn
|
|
|
2476
2486
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2477
2487
|
default:
|
|
2478
2488
|
const parsedBody = parsedOutput.body;
|
|
2489
|
+
const $metadata = deserializeMetadata(output);
|
|
2490
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2479
2491
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2492
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2481
2493
|
$fault: "client",
|
|
2482
|
-
$metadata
|
|
2494
|
+
$metadata,
|
|
2483
2495
|
});
|
|
2484
2496
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2485
2497
|
}
|
|
@@ -2505,8 +2517,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2505
2517
|
body: await parseBody(output.body, context),
|
|
2506
2518
|
};
|
|
2507
2519
|
let response;
|
|
2508
|
-
|
|
2509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
2521
|
switch (errorCode) {
|
|
2511
2522
|
case "BadRequestException":
|
|
2512
2523
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2519,10 +2530,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2519
2530
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2520
2531
|
default:
|
|
2521
2532
|
const parsedBody = parsedOutput.body;
|
|
2533
|
+
const $metadata = deserializeMetadata(output);
|
|
2534
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2522
2535
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2523
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2536
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2524
2537
|
$fault: "client",
|
|
2525
|
-
$metadata
|
|
2538
|
+
$metadata,
|
|
2526
2539
|
});
|
|
2527
2540
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2528
2541
|
}
|
|
@@ -2616,8 +2629,7 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2616
2629
|
body: await parseBody(output.body, context),
|
|
2617
2630
|
};
|
|
2618
2631
|
let response;
|
|
2619
|
-
|
|
2620
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
2633
|
switch (errorCode) {
|
|
2622
2634
|
case "BadRequestException":
|
|
2623
2635
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2633,10 +2645,12 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2633
2645
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2634
2646
|
default:
|
|
2635
2647
|
const parsedBody = parsedOutput.body;
|
|
2648
|
+
const $metadata = deserializeMetadata(output);
|
|
2649
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2636
2650
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2651
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2638
2652
|
$fault: "client",
|
|
2639
|
-
$metadata
|
|
2653
|
+
$metadata,
|
|
2640
2654
|
});
|
|
2641
2655
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2642
2656
|
}
|
|
@@ -2730,8 +2744,7 @@ const deserializeAws_restJson1StopDeploymentCommandError = async (output, contex
|
|
|
2730
2744
|
body: await parseBody(output.body, context),
|
|
2731
2745
|
};
|
|
2732
2746
|
let response;
|
|
2733
|
-
|
|
2734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2735
2748
|
switch (errorCode) {
|
|
2736
2749
|
case "BadRequestException":
|
|
2737
2750
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2744,10 +2757,12 @@ const deserializeAws_restJson1StopDeploymentCommandError = async (output, contex
|
|
|
2744
2757
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2745
2758
|
default:
|
|
2746
2759
|
const parsedBody = parsedOutput.body;
|
|
2760
|
+
const $metadata = deserializeMetadata(output);
|
|
2761
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2747
2762
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2749
2764
|
$fault: "client",
|
|
2750
|
-
$metadata
|
|
2765
|
+
$metadata,
|
|
2751
2766
|
});
|
|
2752
2767
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2753
2768
|
}
|
|
@@ -2769,8 +2784,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2769
2784
|
body: await parseBody(output.body, context),
|
|
2770
2785
|
};
|
|
2771
2786
|
let response;
|
|
2772
|
-
|
|
2773
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2774
2788
|
switch (errorCode) {
|
|
2775
2789
|
case "BadRequestException":
|
|
2776
2790
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2783,10 +2797,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2783
2797
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2784
2798
|
default:
|
|
2785
2799
|
const parsedBody = parsedOutput.body;
|
|
2800
|
+
const $metadata = deserializeMetadata(output);
|
|
2801
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2786
2802
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2803
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2788
2804
|
$fault: "client",
|
|
2789
|
-
$metadata
|
|
2805
|
+
$metadata,
|
|
2790
2806
|
});
|
|
2791
2807
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2792
2808
|
}
|
|
@@ -2808,8 +2824,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2808
2824
|
body: await parseBody(output.body, context),
|
|
2809
2825
|
};
|
|
2810
2826
|
let response;
|
|
2811
|
-
|
|
2812
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2813
2828
|
switch (errorCode) {
|
|
2814
2829
|
case "BadRequestException":
|
|
2815
2830
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2822,10 +2837,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2822
2837
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2823
2838
|
default:
|
|
2824
2839
|
const parsedBody = parsedOutput.body;
|
|
2840
|
+
const $metadata = deserializeMetadata(output);
|
|
2841
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2825
2842
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2826
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2843
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2827
2844
|
$fault: "client",
|
|
2828
|
-
$metadata
|
|
2845
|
+
$metadata,
|
|
2829
2846
|
});
|
|
2830
2847
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2831
2848
|
}
|
|
@@ -2859,8 +2876,7 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2859
2876
|
body: await parseBody(output.body, context),
|
|
2860
2877
|
};
|
|
2861
2878
|
let response;
|
|
2862
|
-
|
|
2863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2879
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
2880
|
switch (errorCode) {
|
|
2865
2881
|
case "BadRequestException":
|
|
2866
2882
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2873,10 +2889,12 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2873
2889
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2874
2890
|
default:
|
|
2875
2891
|
const parsedBody = parsedOutput.body;
|
|
2892
|
+
const $metadata = deserializeMetadata(output);
|
|
2893
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2876
2894
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2895
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2878
2896
|
$fault: "client",
|
|
2879
|
-
$metadata
|
|
2897
|
+
$metadata,
|
|
2880
2898
|
});
|
|
2881
2899
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2882
2900
|
}
|
|
@@ -2930,8 +2948,7 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommandError = async (ou
|
|
|
2930
2948
|
body: await parseBody(output.body, context),
|
|
2931
2949
|
};
|
|
2932
2950
|
let response;
|
|
2933
|
-
|
|
2934
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2951
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
2952
|
switch (errorCode) {
|
|
2936
2953
|
case "BadRequestException":
|
|
2937
2954
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -2944,10 +2961,12 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommandError = async (ou
|
|
|
2944
2961
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2945
2962
|
default:
|
|
2946
2963
|
const parsedBody = parsedOutput.body;
|
|
2964
|
+
const $metadata = deserializeMetadata(output);
|
|
2965
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2947
2966
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2948
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2949
2968
|
$fault: "client",
|
|
2950
|
-
$metadata
|
|
2969
|
+
$metadata,
|
|
2951
2970
|
});
|
|
2952
2971
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2953
2972
|
}
|
|
@@ -3001,8 +3020,7 @@ const deserializeAws_restJson1UpdateDeploymentStrategyCommandError = async (outp
|
|
|
3001
3020
|
body: await parseBody(output.body, context),
|
|
3002
3021
|
};
|
|
3003
3022
|
let response;
|
|
3004
|
-
|
|
3005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3006
3024
|
switch (errorCode) {
|
|
3007
3025
|
case "BadRequestException":
|
|
3008
3026
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -3015,10 +3033,12 @@ const deserializeAws_restJson1UpdateDeploymentStrategyCommandError = async (outp
|
|
|
3015
3033
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3016
3034
|
default:
|
|
3017
3035
|
const parsedBody = parsedOutput.body;
|
|
3036
|
+
const $metadata = deserializeMetadata(output);
|
|
3037
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3018
3038
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3019
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3039
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3020
3040
|
$fault: "client",
|
|
3021
|
-
$metadata
|
|
3041
|
+
$metadata,
|
|
3022
3042
|
});
|
|
3023
3043
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3024
3044
|
}
|
|
@@ -3064,8 +3084,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
3064
3084
|
body: await parseBody(output.body, context),
|
|
3065
3085
|
};
|
|
3066
3086
|
let response;
|
|
3067
|
-
|
|
3068
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3069
3088
|
switch (errorCode) {
|
|
3070
3089
|
case "BadRequestException":
|
|
3071
3090
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -3078,10 +3097,12 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
3078
3097
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3079
3098
|
default:
|
|
3080
3099
|
const parsedBody = parsedOutput.body;
|
|
3100
|
+
const $metadata = deserializeMetadata(output);
|
|
3101
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3081
3102
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3082
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3083
3104
|
$fault: "client",
|
|
3084
|
-
$metadata
|
|
3105
|
+
$metadata,
|
|
3085
3106
|
});
|
|
3086
3107
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3087
3108
|
}
|
|
@@ -3103,8 +3124,7 @@ const deserializeAws_restJson1ValidateConfigurationCommandError = async (output,
|
|
|
3103
3124
|
body: await parseBody(output.body, context),
|
|
3104
3125
|
};
|
|
3105
3126
|
let response;
|
|
3106
|
-
|
|
3107
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3127
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3108
3128
|
switch (errorCode) {
|
|
3109
3129
|
case "BadRequestException":
|
|
3110
3130
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
@@ -3117,10 +3137,12 @@ const deserializeAws_restJson1ValidateConfigurationCommandError = async (output,
|
|
|
3117
3137
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3118
3138
|
default:
|
|
3119
3139
|
const parsedBody = parsedOutput.body;
|
|
3140
|
+
const $metadata = deserializeMetadata(output);
|
|
3141
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3120
3142
|
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3121
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3143
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3122
3144
|
$fault: "client",
|
|
3123
|
-
$metadata
|
|
3145
|
+
$metadata,
|
|
3124
3146
|
});
|
|
3125
3147
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3126
3148
|
}
|
|
@@ -3217,8 +3239,8 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3217
3239
|
};
|
|
3218
3240
|
const serializeAws_restJson1Monitor = (input, context) => {
|
|
3219
3241
|
return {
|
|
3220
|
-
...(input.AlarmArn
|
|
3221
|
-
...(input.AlarmRoleArn
|
|
3242
|
+
...(input.AlarmArn != null && { AlarmArn: input.AlarmArn }),
|
|
3243
|
+
...(input.AlarmRoleArn != null && { AlarmRoleArn: input.AlarmRoleArn }),
|
|
3222
3244
|
};
|
|
3223
3245
|
};
|
|
3224
3246
|
const serializeAws_restJson1MonitorList = (input, context) => {
|
|
@@ -3244,8 +3266,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3244
3266
|
};
|
|
3245
3267
|
const serializeAws_restJson1Validator = (input, context) => {
|
|
3246
3268
|
return {
|
|
3247
|
-
...(input.Content
|
|
3248
|
-
...(input.Type
|
|
3269
|
+
...(input.Content != null && { Content: input.Content }),
|
|
3270
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3249
3271
|
};
|
|
3250
3272
|
};
|
|
3251
3273
|
const serializeAws_restJson1ValidatorList = (input, context) => {
|
|
@@ -3291,7 +3313,7 @@ const deserializeAws_restJson1ConfigurationProfileSummary = (output, context) =>
|
|
|
3291
3313
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
3292
3314
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3293
3315
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3294
|
-
ValidatorTypes: output.ValidatorTypes
|
|
3316
|
+
ValidatorTypes: output.ValidatorTypes != null
|
|
3295
3317
|
? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
|
|
3296
3318
|
: undefined,
|
|
3297
3319
|
};
|
|
@@ -3311,9 +3333,7 @@ const deserializeAws_restJson1DeploymentEvent = (output, context) => {
|
|
|
3311
3333
|
return {
|
|
3312
3334
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3313
3335
|
EventType: (0, smithy_client_1.expectString)(output.EventType),
|
|
3314
|
-
OccurredAt: output.OccurredAt
|
|
3315
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.OccurredAt))
|
|
3316
|
-
: undefined,
|
|
3336
|
+
OccurredAt: output.OccurredAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.OccurredAt)) : undefined,
|
|
3317
3337
|
TriggeredBy: (0, smithy_client_1.expectString)(output.TriggeredBy),
|
|
3318
3338
|
};
|
|
3319
3339
|
};
|
|
@@ -3364,9 +3384,7 @@ const deserializeAws_restJson1DeploymentStrategyList = (output, context) => {
|
|
|
3364
3384
|
};
|
|
3365
3385
|
const deserializeAws_restJson1DeploymentSummary = (output, context) => {
|
|
3366
3386
|
return {
|
|
3367
|
-
CompletedAt: output.CompletedAt
|
|
3368
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CompletedAt))
|
|
3369
|
-
: undefined,
|
|
3387
|
+
CompletedAt: output.CompletedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CompletedAt)) : undefined,
|
|
3370
3388
|
ConfigurationName: (0, smithy_client_1.expectString)(output.ConfigurationName),
|
|
3371
3389
|
ConfigurationVersion: (0, smithy_client_1.expectString)(output.ConfigurationVersion),
|
|
3372
3390
|
DeploymentDurationInMinutes: (0, smithy_client_1.expectInt32)(output.DeploymentDurationInMinutes),
|
|
@@ -3375,9 +3393,7 @@ const deserializeAws_restJson1DeploymentSummary = (output, context) => {
|
|
|
3375
3393
|
GrowthFactor: (0, smithy_client_1.limitedParseFloat32)(output.GrowthFactor),
|
|
3376
3394
|
GrowthType: (0, smithy_client_1.expectString)(output.GrowthType),
|
|
3377
3395
|
PercentageComplete: (0, smithy_client_1.limitedParseFloat32)(output.PercentageComplete),
|
|
3378
|
-
StartedAt: output.StartedAt
|
|
3379
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartedAt))
|
|
3380
|
-
: undefined,
|
|
3396
|
+
StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartedAt)) : undefined,
|
|
3381
3397
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3382
3398
|
};
|
|
3383
3399
|
};
|
|
@@ -3386,9 +3402,7 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
3386
3402
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
3387
3403
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3388
3404
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
3389
|
-
Monitors: output.Monitors
|
|
3390
|
-
? deserializeAws_restJson1MonitorList(output.Monitors, context)
|
|
3391
|
-
: undefined,
|
|
3405
|
+
Monitors: output.Monitors != null ? deserializeAws_restJson1MonitorList(output.Monitors, context) : undefined,
|
|
3392
3406
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3393
3407
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3394
3408
|
};
|
|
@@ -3548,5 +3562,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3548
3562
|
if (data["__type"] !== undefined) {
|
|
3549
3563
|
return sanitizeErrorCode(data["__type"]);
|
|
3550
3564
|
}
|
|
3551
|
-
return "";
|
|
3552
3565
|
};
|