@aws-sdk/client-service-catalog-appregistry 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 +137 -142
- package/dist-es/protocols/Aws_restJson1.js +129 -134
- package/package.json +26 -26
|
@@ -100,9 +100,9 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
100
100
|
let body;
|
|
101
101
|
body = JSON.stringify({
|
|
102
102
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
103
|
-
...(input.description
|
|
104
|
-
...(input.name
|
|
105
|
-
...(input.tags
|
|
103
|
+
...(input.description != null && { description: input.description }),
|
|
104
|
+
...(input.name != null && { name: input.name }),
|
|
105
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
106
106
|
});
|
|
107
107
|
return new protocol_http_1.HttpRequest({
|
|
108
108
|
protocol,
|
|
@@ -124,11 +124,11 @@ const serializeAws_restJson1CreateAttributeGroupCommand = async (input, context)
|
|
|
124
124
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups";
|
|
125
125
|
let body;
|
|
126
126
|
body = JSON.stringify({
|
|
127
|
-
...(input.attributes
|
|
127
|
+
...(input.attributes != null && { attributes: input.attributes }),
|
|
128
128
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
129
|
-
...(input.description
|
|
130
|
-
...(input.name
|
|
131
|
-
...(input.tags
|
|
129
|
+
...(input.description != null && { description: input.description }),
|
|
130
|
+
...(input.name != null && { name: input.name }),
|
|
131
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
132
132
|
});
|
|
133
133
|
return new protocol_http_1.HttpRequest({
|
|
134
134
|
protocol,
|
|
@@ -593,7 +593,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
593
593
|
}
|
|
594
594
|
let body;
|
|
595
595
|
body = JSON.stringify({
|
|
596
|
-
...(input.tags
|
|
596
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
597
597
|
});
|
|
598
598
|
return new protocol_http_1.HttpRequest({
|
|
599
599
|
protocol,
|
|
@@ -654,8 +654,8 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
654
654
|
}
|
|
655
655
|
let body;
|
|
656
656
|
body = JSON.stringify({
|
|
657
|
-
...(input.description
|
|
658
|
-
...(input.name
|
|
657
|
+
...(input.description != null && { description: input.description }),
|
|
658
|
+
...(input.name != null && { name: input.name }),
|
|
659
659
|
});
|
|
660
660
|
return new protocol_http_1.HttpRequest({
|
|
661
661
|
protocol,
|
|
@@ -686,9 +686,9 @@ const serializeAws_restJson1UpdateAttributeGroupCommand = async (input, context)
|
|
|
686
686
|
}
|
|
687
687
|
let body;
|
|
688
688
|
body = JSON.stringify({
|
|
689
|
-
...(input.attributes
|
|
690
|
-
...(input.description
|
|
691
|
-
...(input.name
|
|
689
|
+
...(input.attributes != null && { attributes: input.attributes }),
|
|
690
|
+
...(input.description != null && { description: input.description }),
|
|
691
|
+
...(input.name != null && { name: input.name }),
|
|
692
692
|
});
|
|
693
693
|
return new protocol_http_1.HttpRequest({
|
|
694
694
|
protocol,
|
|
@@ -726,8 +726,7 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
726
726
|
body: await parseBody(output.body, context),
|
|
727
727
|
};
|
|
728
728
|
let response;
|
|
729
|
-
|
|
730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
730
|
switch (errorCode) {
|
|
732
731
|
case "ConflictException":
|
|
733
732
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -746,10 +745,12 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
746
745
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
747
746
|
default:
|
|
748
747
|
const parsedBody = parsedOutput.body;
|
|
748
|
+
const $metadata = deserializeMetadata(output);
|
|
749
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
749
750
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
751
752
|
$fault: "client",
|
|
752
|
-
$metadata
|
|
753
|
+
$metadata,
|
|
753
754
|
});
|
|
754
755
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
755
756
|
}
|
|
@@ -779,8 +780,7 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
779
780
|
body: await parseBody(output.body, context),
|
|
780
781
|
};
|
|
781
782
|
let response;
|
|
782
|
-
|
|
783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
784
|
switch (errorCode) {
|
|
785
785
|
case "ConflictException":
|
|
786
786
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -799,10 +799,12 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
799
799
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
800
800
|
default:
|
|
801
801
|
const parsedBody = parsedOutput.body;
|
|
802
|
+
const $metadata = deserializeMetadata(output);
|
|
803
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
802
804
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
803
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
805
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
804
806
|
$fault: "client",
|
|
805
|
-
$metadata
|
|
807
|
+
$metadata,
|
|
806
808
|
});
|
|
807
809
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
808
810
|
}
|
|
@@ -828,8 +830,7 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
828
830
|
body: await parseBody(output.body, context),
|
|
829
831
|
};
|
|
830
832
|
let response;
|
|
831
|
-
|
|
832
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
834
|
switch (errorCode) {
|
|
834
835
|
case "ConflictException":
|
|
835
836
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -845,10 +846,12 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
845
846
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
846
847
|
default:
|
|
847
848
|
const parsedBody = parsedOutput.body;
|
|
849
|
+
const $metadata = deserializeMetadata(output);
|
|
850
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
848
851
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
849
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
852
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
850
853
|
$fault: "client",
|
|
851
|
-
$metadata
|
|
854
|
+
$metadata,
|
|
852
855
|
});
|
|
853
856
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
854
857
|
}
|
|
@@ -874,8 +877,7 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
874
877
|
body: await parseBody(output.body, context),
|
|
875
878
|
};
|
|
876
879
|
let response;
|
|
877
|
-
|
|
878
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
881
|
switch (errorCode) {
|
|
880
882
|
case "ConflictException":
|
|
881
883
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -891,10 +893,12 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
891
893
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
892
894
|
default:
|
|
893
895
|
const parsedBody = parsedOutput.body;
|
|
896
|
+
const $metadata = deserializeMetadata(output);
|
|
897
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
894
898
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
895
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
899
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
896
900
|
$fault: "client",
|
|
897
|
-
$metadata
|
|
901
|
+
$metadata,
|
|
898
902
|
});
|
|
899
903
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
900
904
|
}
|
|
@@ -920,8 +924,7 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
920
924
|
body: await parseBody(output.body, context),
|
|
921
925
|
};
|
|
922
926
|
let response;
|
|
923
|
-
|
|
924
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
928
|
switch (errorCode) {
|
|
926
929
|
case "InternalServerException":
|
|
927
930
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -934,10 +937,12 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
934
937
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
935
938
|
default:
|
|
936
939
|
const parsedBody = parsedOutput.body;
|
|
940
|
+
const $metadata = deserializeMetadata(output);
|
|
941
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
937
942
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
943
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
939
944
|
$fault: "client",
|
|
940
|
-
$metadata
|
|
945
|
+
$metadata,
|
|
941
946
|
});
|
|
942
947
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
943
948
|
}
|
|
@@ -963,8 +968,7 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
963
968
|
body: await parseBody(output.body, context),
|
|
964
969
|
};
|
|
965
970
|
let response;
|
|
966
|
-
|
|
967
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
972
|
switch (errorCode) {
|
|
969
973
|
case "InternalServerException":
|
|
970
974
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -977,10 +981,12 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
977
981
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
978
982
|
default:
|
|
979
983
|
const parsedBody = parsedOutput.body;
|
|
984
|
+
const $metadata = deserializeMetadata(output);
|
|
985
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
980
986
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
981
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
987
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
982
988
|
$fault: "client",
|
|
983
|
-
$metadata
|
|
989
|
+
$metadata,
|
|
984
990
|
});
|
|
985
991
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
986
992
|
}
|
|
@@ -1010,8 +1016,7 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
1010
1016
|
body: await parseBody(output.body, context),
|
|
1011
1017
|
};
|
|
1012
1018
|
let response;
|
|
1013
|
-
|
|
1014
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1020
|
switch (errorCode) {
|
|
1016
1021
|
case "InternalServerException":
|
|
1017
1022
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1024,10 +1029,12 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
1024
1029
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1025
1030
|
default:
|
|
1026
1031
|
const parsedBody = parsedOutput.body;
|
|
1032
|
+
const $metadata = deserializeMetadata(output);
|
|
1033
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1027
1034
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1028
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1035
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1029
1036
|
$fault: "client",
|
|
1030
|
-
$metadata
|
|
1037
|
+
$metadata,
|
|
1031
1038
|
});
|
|
1032
1039
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1033
1040
|
}
|
|
@@ -1057,8 +1064,7 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
1057
1064
|
body: await parseBody(output.body, context),
|
|
1058
1065
|
};
|
|
1059
1066
|
let response;
|
|
1060
|
-
|
|
1061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1068
|
switch (errorCode) {
|
|
1063
1069
|
case "InternalServerException":
|
|
1064
1070
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1071,10 +1077,12 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
1071
1077
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1072
1078
|
default:
|
|
1073
1079
|
const parsedBody = parsedOutput.body;
|
|
1080
|
+
const $metadata = deserializeMetadata(output);
|
|
1081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1074
1082
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1076
1084
|
$fault: "client",
|
|
1077
|
-
$metadata
|
|
1085
|
+
$metadata,
|
|
1078
1086
|
});
|
|
1079
1087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1080
1088
|
}
|
|
@@ -1132,8 +1140,7 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1132
1140
|
body: await parseBody(output.body, context),
|
|
1133
1141
|
};
|
|
1134
1142
|
let response;
|
|
1135
|
-
|
|
1136
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
1144
|
switch (errorCode) {
|
|
1138
1145
|
case "ConflictException":
|
|
1139
1146
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -1149,10 +1156,12 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1149
1156
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1150
1157
|
default:
|
|
1151
1158
|
const parsedBody = parsedOutput.body;
|
|
1159
|
+
const $metadata = deserializeMetadata(output);
|
|
1160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1152
1161
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1154
1163
|
$fault: "client",
|
|
1155
|
-
$metadata
|
|
1164
|
+
$metadata,
|
|
1156
1165
|
});
|
|
1157
1166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1158
1167
|
}
|
|
@@ -1178,8 +1187,7 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
1178
1187
|
body: await parseBody(output.body, context),
|
|
1179
1188
|
};
|
|
1180
1189
|
let response;
|
|
1181
|
-
|
|
1182
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
1191
|
switch (errorCode) {
|
|
1184
1192
|
case "InternalServerException":
|
|
1185
1193
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1192,10 +1200,12 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
1192
1200
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1193
1201
|
default:
|
|
1194
1202
|
const parsedBody = parsedOutput.body;
|
|
1203
|
+
const $metadata = deserializeMetadata(output);
|
|
1204
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1195
1205
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1196
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1206
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1197
1207
|
$fault: "client",
|
|
1198
|
-
$metadata
|
|
1208
|
+
$metadata,
|
|
1199
1209
|
});
|
|
1200
1210
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1201
1211
|
}
|
|
@@ -1249,8 +1259,7 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
1249
1259
|
body: await parseBody(output.body, context),
|
|
1250
1260
|
};
|
|
1251
1261
|
let response;
|
|
1252
|
-
|
|
1253
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1254
1263
|
switch (errorCode) {
|
|
1255
1264
|
case "ConflictException":
|
|
1256
1265
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -1266,10 +1275,12 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
1266
1275
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1267
1276
|
default:
|
|
1268
1277
|
const parsedBody = parsedOutput.body;
|
|
1278
|
+
const $metadata = deserializeMetadata(output);
|
|
1279
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1269
1280
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1270
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1281
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1271
1282
|
$fault: "client",
|
|
1272
|
-
$metadata
|
|
1283
|
+
$metadata,
|
|
1273
1284
|
});
|
|
1274
1285
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1275
1286
|
}
|
|
@@ -1299,8 +1310,7 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1299
1310
|
body: await parseBody(output.body, context),
|
|
1300
1311
|
};
|
|
1301
1312
|
let response;
|
|
1302
|
-
|
|
1303
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
1314
|
switch (errorCode) {
|
|
1305
1315
|
case "InternalServerException":
|
|
1306
1316
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1310,10 +1320,12 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1310
1320
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1311
1321
|
default:
|
|
1312
1322
|
const parsedBody = parsedOutput.body;
|
|
1323
|
+
const $metadata = deserializeMetadata(output);
|
|
1324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1313
1325
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1314
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1315
1327
|
$fault: "client",
|
|
1316
|
-
$metadata
|
|
1328
|
+
$metadata,
|
|
1317
1329
|
});
|
|
1318
1330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1319
1331
|
}
|
|
@@ -1343,8 +1355,7 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1343
1355
|
body: await parseBody(output.body, context),
|
|
1344
1356
|
};
|
|
1345
1357
|
let response;
|
|
1346
|
-
|
|
1347
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
1359
|
switch (errorCode) {
|
|
1349
1360
|
case "InternalServerException":
|
|
1350
1361
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1357,10 +1368,12 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1357
1368
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1358
1369
|
default:
|
|
1359
1370
|
const parsedBody = parsedOutput.body;
|
|
1371
|
+
const $metadata = deserializeMetadata(output);
|
|
1372
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1360
1373
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1361
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1374
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1362
1375
|
$fault: "client",
|
|
1363
|
-
$metadata
|
|
1376
|
+
$metadata,
|
|
1364
1377
|
});
|
|
1365
1378
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1366
1379
|
}
|
|
@@ -1390,8 +1403,7 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1390
1403
|
body: await parseBody(output.body, context),
|
|
1391
1404
|
};
|
|
1392
1405
|
let response;
|
|
1393
|
-
|
|
1394
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
1407
|
switch (errorCode) {
|
|
1396
1408
|
case "InternalServerException":
|
|
1397
1409
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1404,10 +1416,12 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1404
1416
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1405
1417
|
default:
|
|
1406
1418
|
const parsedBody = parsedOutput.body;
|
|
1419
|
+
const $metadata = deserializeMetadata(output);
|
|
1420
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1407
1421
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1408
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1422
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1409
1423
|
$fault: "client",
|
|
1410
|
-
$metadata
|
|
1424
|
+
$metadata,
|
|
1411
1425
|
});
|
|
1412
1426
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1413
1427
|
}
|
|
@@ -1437,8 +1451,7 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
1437
1451
|
body: await parseBody(output.body, context),
|
|
1438
1452
|
};
|
|
1439
1453
|
let response;
|
|
1440
|
-
|
|
1441
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
1455
|
switch (errorCode) {
|
|
1443
1456
|
case "InternalServerException":
|
|
1444
1457
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1448,10 +1461,12 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
1448
1461
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1449
1462
|
default:
|
|
1450
1463
|
const parsedBody = parsedOutput.body;
|
|
1464
|
+
const $metadata = deserializeMetadata(output);
|
|
1465
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1451
1466
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1467
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1453
1468
|
$fault: "client",
|
|
1454
|
-
$metadata
|
|
1469
|
+
$metadata,
|
|
1455
1470
|
});
|
|
1456
1471
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1457
1472
|
}
|
|
@@ -1481,8 +1496,7 @@ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = as
|
|
|
1481
1496
|
body: await parseBody(output.body, context),
|
|
1482
1497
|
};
|
|
1483
1498
|
let response;
|
|
1484
|
-
|
|
1485
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1499
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
1500
|
switch (errorCode) {
|
|
1487
1501
|
case "InternalServerException":
|
|
1488
1502
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1495,10 +1509,12 @@ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = as
|
|
|
1495
1509
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1496
1510
|
default:
|
|
1497
1511
|
const parsedBody = parsedOutput.body;
|
|
1512
|
+
const $metadata = deserializeMetadata(output);
|
|
1513
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1498
1514
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1499
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1515
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1500
1516
|
$fault: "client",
|
|
1501
|
-
$metadata
|
|
1517
|
+
$metadata,
|
|
1502
1518
|
});
|
|
1503
1519
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1504
1520
|
}
|
|
@@ -1524,8 +1540,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1524
1540
|
body: await parseBody(output.body, context),
|
|
1525
1541
|
};
|
|
1526
1542
|
let response;
|
|
1527
|
-
|
|
1528
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1529
1544
|
switch (errorCode) {
|
|
1530
1545
|
case "InternalServerException":
|
|
1531
1546
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1538,10 +1553,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1538
1553
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1539
1554
|
default:
|
|
1540
1555
|
const parsedBody = parsedOutput.body;
|
|
1556
|
+
const $metadata = deserializeMetadata(output);
|
|
1557
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1541
1558
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1542
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1559
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1543
1560
|
$fault: "client",
|
|
1544
|
-
$metadata
|
|
1561
|
+
$metadata,
|
|
1545
1562
|
});
|
|
1546
1563
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1547
1564
|
}
|
|
@@ -1575,8 +1592,7 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1575
1592
|
body: await parseBody(output.body, context),
|
|
1576
1593
|
};
|
|
1577
1594
|
let response;
|
|
1578
|
-
|
|
1579
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
1596
|
switch (errorCode) {
|
|
1581
1597
|
case "ConflictException":
|
|
1582
1598
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -1589,10 +1605,12 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1589
1605
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1590
1606
|
default:
|
|
1591
1607
|
const parsedBody = parsedOutput.body;
|
|
1608
|
+
const $metadata = deserializeMetadata(output);
|
|
1609
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1592
1610
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1611
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1594
1612
|
$fault: "client",
|
|
1595
|
-
$metadata
|
|
1613
|
+
$metadata,
|
|
1596
1614
|
});
|
|
1597
1615
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1598
1616
|
}
|
|
@@ -1614,8 +1632,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1614
1632
|
body: await parseBody(output.body, context),
|
|
1615
1633
|
};
|
|
1616
1634
|
let response;
|
|
1617
|
-
|
|
1618
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1619
1636
|
switch (errorCode) {
|
|
1620
1637
|
case "InternalServerException":
|
|
1621
1638
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1628,10 +1645,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1628
1645
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1629
1646
|
default:
|
|
1630
1647
|
const parsedBody = parsedOutput.body;
|
|
1648
|
+
const $metadata = deserializeMetadata(output);
|
|
1649
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1631
1650
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1632
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1651
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1633
1652
|
$fault: "client",
|
|
1634
|
-
$metadata
|
|
1653
|
+
$metadata,
|
|
1635
1654
|
});
|
|
1636
1655
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1637
1656
|
}
|
|
@@ -1653,8 +1672,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1653
1672
|
body: await parseBody(output.body, context),
|
|
1654
1673
|
};
|
|
1655
1674
|
let response;
|
|
1656
|
-
|
|
1657
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
1676
|
switch (errorCode) {
|
|
1659
1677
|
case "InternalServerException":
|
|
1660
1678
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
@@ -1667,10 +1685,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1667
1685
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1668
1686
|
default:
|
|
1669
1687
|
const parsedBody = parsedOutput.body;
|
|
1688
|
+
const $metadata = deserializeMetadata(output);
|
|
1689
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1670
1690
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1671
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1691
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1672
1692
|
$fault: "client",
|
|
1673
|
-
$metadata
|
|
1693
|
+
$metadata,
|
|
1674
1694
|
});
|
|
1675
1695
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1676
1696
|
}
|
|
@@ -1696,8 +1716,7 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1696
1716
|
body: await parseBody(output.body, context),
|
|
1697
1717
|
};
|
|
1698
1718
|
let response;
|
|
1699
|
-
|
|
1700
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1720
|
switch (errorCode) {
|
|
1702
1721
|
case "ConflictException":
|
|
1703
1722
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -1713,10 +1732,12 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1713
1732
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1714
1733
|
default:
|
|
1715
1734
|
const parsedBody = parsedOutput.body;
|
|
1735
|
+
const $metadata = deserializeMetadata(output);
|
|
1736
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1716
1737
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1717
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1718
1739
|
$fault: "client",
|
|
1719
|
-
$metadata
|
|
1740
|
+
$metadata,
|
|
1720
1741
|
});
|
|
1721
1742
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1722
1743
|
}
|
|
@@ -1742,8 +1763,7 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
1742
1763
|
body: await parseBody(output.body, context),
|
|
1743
1764
|
};
|
|
1744
1765
|
let response;
|
|
1745
|
-
|
|
1746
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
1767
|
switch (errorCode) {
|
|
1748
1768
|
case "ConflictException":
|
|
1749
1769
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -1759,10 +1779,12 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
1759
1779
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1760
1780
|
default:
|
|
1761
1781
|
const parsedBody = parsedOutput.body;
|
|
1782
|
+
const $metadata = deserializeMetadata(output);
|
|
1783
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1762
1784
|
response = new ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException({
|
|
1763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1785
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1764
1786
|
$fault: "client",
|
|
1765
|
-
$metadata
|
|
1787
|
+
$metadata,
|
|
1766
1788
|
});
|
|
1767
1789
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1768
1790
|
}
|
|
@@ -1841,18 +1863,12 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
1841
1863
|
const deserializeAws_restJson1Application = (output, context) => {
|
|
1842
1864
|
return {
|
|
1843
1865
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1844
|
-
creationTime: output.creationTime
|
|
1845
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1846
|
-
: undefined,
|
|
1866
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1847
1867
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1848
1868
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1849
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1850
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdateTime))
|
|
1851
|
-
: undefined,
|
|
1869
|
+
lastUpdateTime: output.lastUpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdateTime)) : undefined,
|
|
1852
1870
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1853
|
-
tags: output.tags
|
|
1854
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
1855
|
-
: undefined,
|
|
1871
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1856
1872
|
};
|
|
1857
1873
|
};
|
|
1858
1874
|
const deserializeAws_restJson1ApplicationSummaries = (output, context) => {
|
|
@@ -1869,32 +1885,22 @@ const deserializeAws_restJson1ApplicationSummaries = (output, context) => {
|
|
|
1869
1885
|
const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
1870
1886
|
return {
|
|
1871
1887
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1872
|
-
creationTime: output.creationTime
|
|
1873
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1874
|
-
: undefined,
|
|
1888
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1875
1889
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1876
1890
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1877
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1878
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdateTime))
|
|
1879
|
-
: undefined,
|
|
1891
|
+
lastUpdateTime: output.lastUpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdateTime)) : undefined,
|
|
1880
1892
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1881
1893
|
};
|
|
1882
1894
|
};
|
|
1883
1895
|
const deserializeAws_restJson1AttributeGroup = (output, context) => {
|
|
1884
1896
|
return {
|
|
1885
1897
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1886
|
-
creationTime: output.creationTime
|
|
1887
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1888
|
-
: undefined,
|
|
1898
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1889
1899
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1890
1900
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1891
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1892
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdateTime))
|
|
1893
|
-
: undefined,
|
|
1901
|
+
lastUpdateTime: output.lastUpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdateTime)) : undefined,
|
|
1894
1902
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1895
|
-
tags: output.tags
|
|
1896
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
1897
|
-
: undefined,
|
|
1903
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1898
1904
|
};
|
|
1899
1905
|
};
|
|
1900
1906
|
const deserializeAws_restJson1AttributeGroupDetails = (output, context) => {
|
|
@@ -1940,31 +1946,23 @@ const deserializeAws_restJson1AttributeGroupSummaries = (output, context) => {
|
|
|
1940
1946
|
const deserializeAws_restJson1AttributeGroupSummary = (output, context) => {
|
|
1941
1947
|
return {
|
|
1942
1948
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1943
|
-
creationTime: output.creationTime
|
|
1944
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1945
|
-
: undefined,
|
|
1949
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1946
1950
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1947
1951
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1948
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1949
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdateTime))
|
|
1950
|
-
: undefined,
|
|
1952
|
+
lastUpdateTime: output.lastUpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdateTime)) : undefined,
|
|
1951
1953
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1952
1954
|
};
|
|
1953
1955
|
};
|
|
1954
1956
|
const deserializeAws_restJson1Integrations = (output, context) => {
|
|
1955
1957
|
return {
|
|
1956
|
-
resourceGroup: output.resourceGroup
|
|
1957
|
-
? deserializeAws_restJson1ResourceGroup(output.resourceGroup, context)
|
|
1958
|
-
: undefined,
|
|
1958
|
+
resourceGroup: output.resourceGroup != null ? deserializeAws_restJson1ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1959
1959
|
};
|
|
1960
1960
|
};
|
|
1961
1961
|
const deserializeAws_restJson1Resource = (output, context) => {
|
|
1962
1962
|
return {
|
|
1963
1963
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1964
|
-
associationTime: output.associationTime
|
|
1965
|
-
|
|
1966
|
-
: undefined,
|
|
1967
|
-
integrations: output.integrations !== undefined && output.integrations !== null
|
|
1964
|
+
associationTime: output.associationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.associationTime)) : undefined,
|
|
1965
|
+
integrations: output.integrations != null
|
|
1968
1966
|
? deserializeAws_restJson1ResourceIntegrations(output.integrations, context)
|
|
1969
1967
|
: undefined,
|
|
1970
1968
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -1985,9 +1983,7 @@ const deserializeAws_restJson1ResourceInfo = (output, context) => {
|
|
|
1985
1983
|
};
|
|
1986
1984
|
const deserializeAws_restJson1ResourceIntegrations = (output, context) => {
|
|
1987
1985
|
return {
|
|
1988
|
-
resourceGroup: output.resourceGroup
|
|
1989
|
-
? deserializeAws_restJson1ResourceGroup(output.resourceGroup, context)
|
|
1990
|
-
: undefined,
|
|
1986
|
+
resourceGroup: output.resourceGroup != null ? deserializeAws_restJson1ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1991
1987
|
};
|
|
1992
1988
|
};
|
|
1993
1989
|
const deserializeAws_restJson1Resources = (output, context) => {
|
|
@@ -2061,5 +2057,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2061
2057
|
if (data["__type"] !== undefined) {
|
|
2062
2058
|
return sanitizeErrorCode(data["__type"]);
|
|
2063
2059
|
}
|
|
2064
|
-
return "";
|
|
2065
2060
|
};
|