@aws-sdk/client-greengrassv2 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +94 -905
- package/dist-es/protocols/Aws_restJson1.js +85 -896
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -832,7 +832,7 @@ var se_UpdateConnectivityInfoCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
832
832
|
}, "se_UpdateConnectivityInfoCommand");
|
|
833
833
|
var de_AssociateServiceRoleToAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
834
834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
835
|
-
return
|
|
835
|
+
return de_CommandError(output, context);
|
|
836
836
|
}
|
|
837
837
|
const contents = (0, import_smithy_client.map)({
|
|
838
838
|
$metadata: deserializeMetadata(output)
|
|
@@ -844,31 +844,9 @@ var de_AssociateServiceRoleToAccountCommand = /* @__PURE__ */ __name(async (outp
|
|
|
844
844
|
Object.assign(contents, doc);
|
|
845
845
|
return contents;
|
|
846
846
|
}, "de_AssociateServiceRoleToAccountCommand");
|
|
847
|
-
var de_AssociateServiceRoleToAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
848
|
-
const parsedOutput = {
|
|
849
|
-
...output,
|
|
850
|
-
body: await parseErrorBody(output.body, context)
|
|
851
|
-
};
|
|
852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
|
-
switch (errorCode) {
|
|
854
|
-
case "InternalServerException":
|
|
855
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ValidationException":
|
|
858
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
859
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
|
-
default:
|
|
861
|
-
const parsedBody = parsedOutput.body;
|
|
862
|
-
return throwDefaultError({
|
|
863
|
-
output,
|
|
864
|
-
parsedBody,
|
|
865
|
-
errorCode
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
}, "de_AssociateServiceRoleToAccountCommandError");
|
|
869
847
|
var de_BatchAssociateClientDeviceWithCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
870
848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
871
|
-
return
|
|
849
|
+
return de_CommandError(output, context);
|
|
872
850
|
}
|
|
873
851
|
const contents = (0, import_smithy_client.map)({
|
|
874
852
|
$metadata: deserializeMetadata(output)
|
|
@@ -880,40 +858,9 @@ var de_BatchAssociateClientDeviceWithCoreDeviceCommand = /* @__PURE__ */ __name(
|
|
|
880
858
|
Object.assign(contents, doc);
|
|
881
859
|
return contents;
|
|
882
860
|
}, "de_BatchAssociateClientDeviceWithCoreDeviceCommand");
|
|
883
|
-
var de_BatchAssociateClientDeviceWithCoreDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context)
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "AccessDeniedException":
|
|
891
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InternalServerException":
|
|
894
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ResourceNotFoundException":
|
|
897
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ThrottlingException":
|
|
900
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
901
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ValidationException":
|
|
903
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
904
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
905
|
-
default:
|
|
906
|
-
const parsedBody = parsedOutput.body;
|
|
907
|
-
return throwDefaultError({
|
|
908
|
-
output,
|
|
909
|
-
parsedBody,
|
|
910
|
-
errorCode
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
}, "de_BatchAssociateClientDeviceWithCoreDeviceCommandError");
|
|
914
861
|
var de_BatchDisassociateClientDeviceFromCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
916
|
-
return
|
|
863
|
+
return de_CommandError(output, context);
|
|
917
864
|
}
|
|
918
865
|
const contents = (0, import_smithy_client.map)({
|
|
919
866
|
$metadata: deserializeMetadata(output)
|
|
@@ -925,40 +872,9 @@ var de_BatchDisassociateClientDeviceFromCoreDeviceCommand = /* @__PURE__ */ __na
|
|
|
925
872
|
Object.assign(contents, doc);
|
|
926
873
|
return contents;
|
|
927
874
|
}, "de_BatchDisassociateClientDeviceFromCoreDeviceCommand");
|
|
928
|
-
var de_BatchDisassociateClientDeviceFromCoreDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
929
|
-
const parsedOutput = {
|
|
930
|
-
...output,
|
|
931
|
-
body: await parseErrorBody(output.body, context)
|
|
932
|
-
};
|
|
933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
-
switch (errorCode) {
|
|
935
|
-
case "AccessDeniedException":
|
|
936
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
937
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
938
|
-
case "InternalServerException":
|
|
939
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
940
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ResourceNotFoundException":
|
|
942
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
943
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ThrottlingException":
|
|
945
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
946
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ValidationException":
|
|
948
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
949
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
950
|
-
default:
|
|
951
|
-
const parsedBody = parsedOutput.body;
|
|
952
|
-
return throwDefaultError({
|
|
953
|
-
output,
|
|
954
|
-
parsedBody,
|
|
955
|
-
errorCode
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
}, "de_BatchDisassociateClientDeviceFromCoreDeviceCommandError");
|
|
959
875
|
var de_CancelDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
876
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
962
878
|
}
|
|
963
879
|
const contents = (0, import_smithy_client.map)({
|
|
964
880
|
$metadata: deserializeMetadata(output)
|
|
@@ -970,43 +886,9 @@ var de_CancelDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
970
886
|
Object.assign(contents, doc);
|
|
971
887
|
return contents;
|
|
972
888
|
}, "de_CancelDeploymentCommand");
|
|
973
|
-
var de_CancelDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
974
|
-
const parsedOutput = {
|
|
975
|
-
...output,
|
|
976
|
-
body: await parseErrorBody(output.body, context)
|
|
977
|
-
};
|
|
978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
|
-
switch (errorCode) {
|
|
980
|
-
case "AccessDeniedException":
|
|
981
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
982
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ConflictException":
|
|
984
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
985
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
986
|
-
case "InternalServerException":
|
|
987
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
988
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
989
|
-
case "ResourceNotFoundException":
|
|
990
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
991
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
992
|
-
case "ThrottlingException":
|
|
993
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
994
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
995
|
-
case "ValidationException":
|
|
996
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
997
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
998
|
-
default:
|
|
999
|
-
const parsedBody = parsedOutput.body;
|
|
1000
|
-
return throwDefaultError({
|
|
1001
|
-
output,
|
|
1002
|
-
parsedBody,
|
|
1003
|
-
errorCode
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
}, "de_CancelDeploymentCommandError");
|
|
1007
889
|
var de_CreateComponentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1008
890
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1009
|
-
return
|
|
891
|
+
return de_CommandError(output, context);
|
|
1010
892
|
}
|
|
1011
893
|
const contents = (0, import_smithy_client.map)({
|
|
1012
894
|
$metadata: deserializeMetadata(output)
|
|
@@ -1022,46 +904,9 @@ var de_CreateComponentVersionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1022
904
|
Object.assign(contents, doc);
|
|
1023
905
|
return contents;
|
|
1024
906
|
}, "de_CreateComponentVersionCommand");
|
|
1025
|
-
var de_CreateComponentVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
|
-
const parsedOutput = {
|
|
1027
|
-
...output,
|
|
1028
|
-
body: await parseErrorBody(output.body, context)
|
|
1029
|
-
};
|
|
1030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
-
switch (errorCode) {
|
|
1032
|
-
case "AccessDeniedException":
|
|
1033
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1034
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "ConflictException":
|
|
1036
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1037
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "InternalServerException":
|
|
1039
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1040
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "RequestAlreadyInProgressException":
|
|
1042
|
-
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
1043
|
-
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ServiceQuotaExceededException":
|
|
1045
|
-
case "com.amazonaws.greengrassv2#ServiceQuotaExceededException":
|
|
1046
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ThrottlingException":
|
|
1048
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1049
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ValidationException":
|
|
1051
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1052
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1053
|
-
default:
|
|
1054
|
-
const parsedBody = parsedOutput.body;
|
|
1055
|
-
return throwDefaultError({
|
|
1056
|
-
output,
|
|
1057
|
-
parsedBody,
|
|
1058
|
-
errorCode
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
}, "de_CreateComponentVersionCommandError");
|
|
1062
907
|
var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1063
908
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1064
|
-
return
|
|
909
|
+
return de_CommandError(output, context);
|
|
1065
910
|
}
|
|
1066
911
|
const contents = (0, import_smithy_client.map)({
|
|
1067
912
|
$metadata: deserializeMetadata(output)
|
|
@@ -1075,46 +920,9 @@ var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1075
920
|
Object.assign(contents, doc);
|
|
1076
921
|
return contents;
|
|
1077
922
|
}, "de_CreateDeploymentCommand");
|
|
1078
|
-
var de_CreateDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1079
|
-
const parsedOutput = {
|
|
1080
|
-
...output,
|
|
1081
|
-
body: await parseErrorBody(output.body, context)
|
|
1082
|
-
};
|
|
1083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
|
-
switch (errorCode) {
|
|
1085
|
-
case "AccessDeniedException":
|
|
1086
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1087
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ConflictException":
|
|
1089
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1090
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "InternalServerException":
|
|
1092
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1093
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "RequestAlreadyInProgressException":
|
|
1095
|
-
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
1096
|
-
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ResourceNotFoundException":
|
|
1098
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1099
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "ThrottlingException":
|
|
1101
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1102
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ValidationException":
|
|
1104
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1105
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1106
|
-
default:
|
|
1107
|
-
const parsedBody = parsedOutput.body;
|
|
1108
|
-
return throwDefaultError({
|
|
1109
|
-
output,
|
|
1110
|
-
parsedBody,
|
|
1111
|
-
errorCode
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
}, "de_CreateDeploymentCommandError");
|
|
1115
923
|
var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1116
924
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1117
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
1118
926
|
}
|
|
1119
927
|
const contents = (0, import_smithy_client.map)({
|
|
1120
928
|
$metadata: deserializeMetadata(output)
|
|
@@ -1122,43 +930,9 @@ var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1122
930
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1123
931
|
return contents;
|
|
1124
932
|
}, "de_DeleteComponentCommand");
|
|
1125
|
-
var de_DeleteComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context)
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "AccessDeniedException":
|
|
1133
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1134
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "ConflictException":
|
|
1136
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1137
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "InternalServerException":
|
|
1139
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1140
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "ResourceNotFoundException":
|
|
1142
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1143
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ThrottlingException":
|
|
1145
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1146
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "ValidationException":
|
|
1148
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1149
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1150
|
-
default:
|
|
1151
|
-
const parsedBody = parsedOutput.body;
|
|
1152
|
-
return throwDefaultError({
|
|
1153
|
-
output,
|
|
1154
|
-
parsedBody,
|
|
1155
|
-
errorCode
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
1158
|
-
}, "de_DeleteComponentCommandError");
|
|
1159
933
|
var de_DeleteCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1160
934
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1161
|
-
return
|
|
935
|
+
return de_CommandError(output, context);
|
|
1162
936
|
}
|
|
1163
937
|
const contents = (0, import_smithy_client.map)({
|
|
1164
938
|
$metadata: deserializeMetadata(output)
|
|
@@ -1166,43 +940,9 @@ var de_DeleteCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1166
940
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1167
941
|
return contents;
|
|
1168
942
|
}, "de_DeleteCoreDeviceCommand");
|
|
1169
|
-
var de_DeleteCoreDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await parseErrorBody(output.body, context)
|
|
1173
|
-
};
|
|
1174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
-
switch (errorCode) {
|
|
1176
|
-
case "AccessDeniedException":
|
|
1177
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1178
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ConflictException":
|
|
1180
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1181
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "InternalServerException":
|
|
1183
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1184
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ResourceNotFoundException":
|
|
1186
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ThrottlingException":
|
|
1189
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1190
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ValidationException":
|
|
1192
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1193
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1194
|
-
default:
|
|
1195
|
-
const parsedBody = parsedOutput.body;
|
|
1196
|
-
return throwDefaultError({
|
|
1197
|
-
output,
|
|
1198
|
-
parsedBody,
|
|
1199
|
-
errorCode
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
}, "de_DeleteCoreDeviceCommandError");
|
|
1203
943
|
var de_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1204
944
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1206
946
|
}
|
|
1207
947
|
const contents = (0, import_smithy_client.map)({
|
|
1208
948
|
$metadata: deserializeMetadata(output)
|
|
@@ -1210,43 +950,9 @@ var de_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1210
950
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1211
951
|
return contents;
|
|
1212
952
|
}, "de_DeleteDeploymentCommand");
|
|
1213
|
-
var de_DeleteDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context)
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "AccessDeniedException":
|
|
1221
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1222
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ConflictException":
|
|
1224
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1225
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "InternalServerException":
|
|
1227
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1228
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ResourceNotFoundException":
|
|
1230
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1231
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ThrottlingException":
|
|
1233
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1234
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ValidationException":
|
|
1236
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1237
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1238
|
-
default:
|
|
1239
|
-
const parsedBody = parsedOutput.body;
|
|
1240
|
-
return throwDefaultError({
|
|
1241
|
-
output,
|
|
1242
|
-
parsedBody,
|
|
1243
|
-
errorCode
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
}, "de_DeleteDeploymentCommandError");
|
|
1247
953
|
var de_DescribeComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1248
954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1249
|
-
return
|
|
955
|
+
return de_CommandError(output, context);
|
|
1250
956
|
}
|
|
1251
957
|
const contents = (0, import_smithy_client.map)({
|
|
1252
958
|
$metadata: deserializeMetadata(output)
|
|
@@ -1266,40 +972,9 @@ var de_DescribeComponentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1266
972
|
Object.assign(contents, doc);
|
|
1267
973
|
return contents;
|
|
1268
974
|
}, "de_DescribeComponentCommand");
|
|
1269
|
-
var de_DescribeComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1270
|
-
const parsedOutput = {
|
|
1271
|
-
...output,
|
|
1272
|
-
body: await parseErrorBody(output.body, context)
|
|
1273
|
-
};
|
|
1274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
|
-
switch (errorCode) {
|
|
1276
|
-
case "AccessDeniedException":
|
|
1277
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1278
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "InternalServerException":
|
|
1280
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1281
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ResourceNotFoundException":
|
|
1283
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1284
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "ThrottlingException":
|
|
1286
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1287
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "ValidationException":
|
|
1289
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1290
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1291
|
-
default:
|
|
1292
|
-
const parsedBody = parsedOutput.body;
|
|
1293
|
-
return throwDefaultError({
|
|
1294
|
-
output,
|
|
1295
|
-
parsedBody,
|
|
1296
|
-
errorCode
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
}, "de_DescribeComponentCommandError");
|
|
1300
975
|
var de_DisassociateServiceRoleFromAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1301
976
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1302
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
1303
978
|
}
|
|
1304
979
|
const contents = (0, import_smithy_client.map)({
|
|
1305
980
|
$metadata: deserializeMetadata(output)
|
|
@@ -1307,79 +982,29 @@ var de_DisassociateServiceRoleFromAccountCommand = /* @__PURE__ */ __name(async
|
|
|
1307
982
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1308
983
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1309
984
|
disassociatedAt: [, import_smithy_client.expectString, `DisassociatedAt`]
|
|
1310
|
-
});
|
|
1311
|
-
Object.assign(contents, doc);
|
|
1312
|
-
return contents;
|
|
1313
|
-
}, "de_DisassociateServiceRoleFromAccountCommand");
|
|
1314
|
-
var
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
body: await parseErrorBody(output.body, context)
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "InternalServerException":
|
|
1322
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1323
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1324
|
-
default:
|
|
1325
|
-
const parsedBody = parsedOutput.body;
|
|
1326
|
-
return throwDefaultError({
|
|
1327
|
-
output,
|
|
1328
|
-
parsedBody,
|
|
1329
|
-
errorCode
|
|
1330
|
-
});
|
|
1331
|
-
}
|
|
1332
|
-
}, "de_DisassociateServiceRoleFromAccountCommandError");
|
|
1333
|
-
var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1334
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1335
|
-
return de_GetComponentCommandError(output, context);
|
|
1336
|
-
}
|
|
1337
|
-
const contents = (0, import_smithy_client.map)({
|
|
1338
|
-
$metadata: deserializeMetadata(output)
|
|
1339
|
-
});
|
|
1340
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1341
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1342
|
-
recipe: context.base64Decoder,
|
|
1343
|
-
recipeOutputFormat: import_smithy_client.expectString,
|
|
1344
|
-
tags: import_smithy_client._json
|
|
1345
|
-
});
|
|
1346
|
-
Object.assign(contents, doc);
|
|
1347
|
-
return contents;
|
|
1348
|
-
}, "de_GetComponentCommand");
|
|
1349
|
-
var de_GetComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context)
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "AccessDeniedException":
|
|
1357
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1358
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "InternalServerException":
|
|
1360
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ResourceNotFoundException":
|
|
1363
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ThrottlingException":
|
|
1366
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1367
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "ValidationException":
|
|
1369
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1370
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1371
|
-
default:
|
|
1372
|
-
const parsedBody = parsedOutput.body;
|
|
1373
|
-
return throwDefaultError({
|
|
1374
|
-
output,
|
|
1375
|
-
parsedBody,
|
|
1376
|
-
errorCode
|
|
1377
|
-
});
|
|
985
|
+
});
|
|
986
|
+
Object.assign(contents, doc);
|
|
987
|
+
return contents;
|
|
988
|
+
}, "de_DisassociateServiceRoleFromAccountCommand");
|
|
989
|
+
var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
990
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
+
return de_CommandError(output, context);
|
|
1378
992
|
}
|
|
1379
|
-
|
|
993
|
+
const contents = (0, import_smithy_client.map)({
|
|
994
|
+
$metadata: deserializeMetadata(output)
|
|
995
|
+
});
|
|
996
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
997
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
998
|
+
recipe: context.base64Decoder,
|
|
999
|
+
recipeOutputFormat: import_smithy_client.expectString,
|
|
1000
|
+
tags: import_smithy_client._json
|
|
1001
|
+
});
|
|
1002
|
+
Object.assign(contents, doc);
|
|
1003
|
+
return contents;
|
|
1004
|
+
}, "de_GetComponentCommand");
|
|
1380
1005
|
var de_GetComponentVersionArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
1006
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
1007
|
+
return de_CommandError(output, context);
|
|
1383
1008
|
}
|
|
1384
1009
|
const contents = (0, import_smithy_client.map)({
|
|
1385
1010
|
$metadata: deserializeMetadata(output)
|
|
@@ -1391,40 +1016,9 @@ var de_GetComponentVersionArtifactCommand = /* @__PURE__ */ __name(async (output
|
|
|
1391
1016
|
Object.assign(contents, doc);
|
|
1392
1017
|
return contents;
|
|
1393
1018
|
}, "de_GetComponentVersionArtifactCommand");
|
|
1394
|
-
var de_GetComponentVersionArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1395
|
-
const parsedOutput = {
|
|
1396
|
-
...output,
|
|
1397
|
-
body: await parseErrorBody(output.body, context)
|
|
1398
|
-
};
|
|
1399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
|
-
switch (errorCode) {
|
|
1401
|
-
case "AccessDeniedException":
|
|
1402
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1403
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "InternalServerException":
|
|
1405
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1406
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "ResourceNotFoundException":
|
|
1408
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1409
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ThrottlingException":
|
|
1411
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1412
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "ValidationException":
|
|
1414
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1415
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1416
|
-
default:
|
|
1417
|
-
const parsedBody = parsedOutput.body;
|
|
1418
|
-
return throwDefaultError({
|
|
1419
|
-
output,
|
|
1420
|
-
parsedBody,
|
|
1421
|
-
errorCode
|
|
1422
|
-
});
|
|
1423
|
-
}
|
|
1424
|
-
}, "de_GetComponentVersionArtifactCommandError");
|
|
1425
1019
|
var de_GetConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1426
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1427
|
-
return
|
|
1021
|
+
return de_CommandError(output, context);
|
|
1428
1022
|
}
|
|
1429
1023
|
const contents = (0, import_smithy_client.map)({
|
|
1430
1024
|
$metadata: deserializeMetadata(output)
|
|
@@ -1437,31 +1031,9 @@ var de_GetConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1437
1031
|
Object.assign(contents, doc);
|
|
1438
1032
|
return contents;
|
|
1439
1033
|
}, "de_GetConnectivityInfoCommand");
|
|
1440
|
-
var de_GetConnectivityInfoCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1441
|
-
const parsedOutput = {
|
|
1442
|
-
...output,
|
|
1443
|
-
body: await parseErrorBody(output.body, context)
|
|
1444
|
-
};
|
|
1445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
|
-
switch (errorCode) {
|
|
1447
|
-
case "InternalServerException":
|
|
1448
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1449
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ValidationException":
|
|
1451
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1452
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1453
|
-
default:
|
|
1454
|
-
const parsedBody = parsedOutput.body;
|
|
1455
|
-
return throwDefaultError({
|
|
1456
|
-
output,
|
|
1457
|
-
parsedBody,
|
|
1458
|
-
errorCode
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
}, "de_GetConnectivityInfoCommandError");
|
|
1462
1034
|
var de_GetCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1463
1035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1464
|
-
return
|
|
1036
|
+
return de_CommandError(output, context);
|
|
1465
1037
|
}
|
|
1466
1038
|
const contents = (0, import_smithy_client.map)({
|
|
1467
1039
|
$metadata: deserializeMetadata(output)
|
|
@@ -1479,40 +1051,9 @@ var de_GetCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1479
1051
|
Object.assign(contents, doc);
|
|
1480
1052
|
return contents;
|
|
1481
1053
|
}, "de_GetCoreDeviceCommand");
|
|
1482
|
-
var de_GetCoreDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1483
|
-
const parsedOutput = {
|
|
1484
|
-
...output,
|
|
1485
|
-
body: await parseErrorBody(output.body, context)
|
|
1486
|
-
};
|
|
1487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
|
-
switch (errorCode) {
|
|
1489
|
-
case "AccessDeniedException":
|
|
1490
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1491
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "InternalServerException":
|
|
1493
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1494
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "ResourceNotFoundException":
|
|
1496
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1497
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ThrottlingException":
|
|
1499
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1500
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ValidationException":
|
|
1502
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1503
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1504
|
-
default:
|
|
1505
|
-
const parsedBody = parsedOutput.body;
|
|
1506
|
-
return throwDefaultError({
|
|
1507
|
-
output,
|
|
1508
|
-
parsedBody,
|
|
1509
|
-
errorCode
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
}, "de_GetCoreDeviceCommandError");
|
|
1513
1054
|
var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
1055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
|
-
return
|
|
1056
|
+
return de_CommandError(output, context);
|
|
1516
1057
|
}
|
|
1517
1058
|
const contents = (0, import_smithy_client.map)({
|
|
1518
1059
|
$metadata: deserializeMetadata(output)
|
|
@@ -1537,40 +1078,9 @@ var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1537
1078
|
Object.assign(contents, doc);
|
|
1538
1079
|
return contents;
|
|
1539
1080
|
}, "de_GetDeploymentCommand");
|
|
1540
|
-
var de_GetDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1541
|
-
const parsedOutput = {
|
|
1542
|
-
...output,
|
|
1543
|
-
body: await parseErrorBody(output.body, context)
|
|
1544
|
-
};
|
|
1545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
-
switch (errorCode) {
|
|
1547
|
-
case "AccessDeniedException":
|
|
1548
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1549
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "InternalServerException":
|
|
1551
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1552
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ResourceNotFoundException":
|
|
1554
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1555
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "ThrottlingException":
|
|
1557
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1558
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "ValidationException":
|
|
1560
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1561
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1562
|
-
default:
|
|
1563
|
-
const parsedBody = parsedOutput.body;
|
|
1564
|
-
return throwDefaultError({
|
|
1565
|
-
output,
|
|
1566
|
-
parsedBody,
|
|
1567
|
-
errorCode
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
}, "de_GetDeploymentCommandError");
|
|
1571
1081
|
var de_GetServiceRoleForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
1082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
1083
|
+
return de_CommandError(output, context);
|
|
1574
1084
|
}
|
|
1575
1085
|
const contents = (0, import_smithy_client.map)({
|
|
1576
1086
|
$metadata: deserializeMetadata(output)
|
|
@@ -1583,28 +1093,9 @@ var de_GetServiceRoleForAccountCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1583
1093
|
Object.assign(contents, doc);
|
|
1584
1094
|
return contents;
|
|
1585
1095
|
}, "de_GetServiceRoleForAccountCommand");
|
|
1586
|
-
var de_GetServiceRoleForAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1587
|
-
const parsedOutput = {
|
|
1588
|
-
...output,
|
|
1589
|
-
body: await parseErrorBody(output.body, context)
|
|
1590
|
-
};
|
|
1591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
|
-
switch (errorCode) {
|
|
1593
|
-
case "InternalServerException":
|
|
1594
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1595
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1596
|
-
default:
|
|
1597
|
-
const parsedBody = parsedOutput.body;
|
|
1598
|
-
return throwDefaultError({
|
|
1599
|
-
output,
|
|
1600
|
-
parsedBody,
|
|
1601
|
-
errorCode
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
}, "de_GetServiceRoleForAccountCommandError");
|
|
1605
1096
|
var de_ListClientDevicesAssociatedWithCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1606
1097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1607
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
1608
1099
|
}
|
|
1609
1100
|
const contents = (0, import_smithy_client.map)({
|
|
1610
1101
|
$metadata: deserializeMetadata(output)
|
|
@@ -1617,132 +1108,39 @@ var de_ListClientDevicesAssociatedWithCoreDeviceCommand = /* @__PURE__ */ __name
|
|
|
1617
1108
|
Object.assign(contents, doc);
|
|
1618
1109
|
return contents;
|
|
1619
1110
|
}, "de_ListClientDevicesAssociatedWithCoreDeviceCommand");
|
|
1620
|
-
var
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ValidationException":
|
|
1640
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1641
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
return throwDefaultError({
|
|
1645
|
-
output,
|
|
1646
|
-
parsedBody,
|
|
1647
|
-
errorCode
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
}, "de_ListClientDevicesAssociatedWithCoreDeviceCommandError");
|
|
1651
|
-
var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1652
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1653
|
-
return de_ListComponentsCommandError(output, context);
|
|
1654
|
-
}
|
|
1655
|
-
const contents = (0, import_smithy_client.map)({
|
|
1656
|
-
$metadata: deserializeMetadata(output)
|
|
1657
|
-
});
|
|
1658
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1659
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1660
|
-
components: (_) => de_ComponentList(_, context),
|
|
1661
|
-
nextToken: import_smithy_client.expectString
|
|
1662
|
-
});
|
|
1663
|
-
Object.assign(contents, doc);
|
|
1664
|
-
return contents;
|
|
1665
|
-
}, "de_ListComponentsCommand");
|
|
1666
|
-
var de_ListComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1667
|
-
const parsedOutput = {
|
|
1668
|
-
...output,
|
|
1669
|
-
body: await parseErrorBody(output.body, context)
|
|
1670
|
-
};
|
|
1671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
|
-
switch (errorCode) {
|
|
1673
|
-
case "AccessDeniedException":
|
|
1674
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1675
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "InternalServerException":
|
|
1677
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1678
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "ResourceNotFoundException":
|
|
1680
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1681
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "ThrottlingException":
|
|
1683
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1684
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ValidationException":
|
|
1686
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1687
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1688
|
-
default:
|
|
1689
|
-
const parsedBody = parsedOutput.body;
|
|
1690
|
-
return throwDefaultError({
|
|
1691
|
-
output,
|
|
1692
|
-
parsedBody,
|
|
1693
|
-
errorCode
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
}, "de_ListComponentsCommandError");
|
|
1697
|
-
var de_ListComponentVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1698
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1699
|
-
return de_ListComponentVersionsCommandError(output, context);
|
|
1700
|
-
}
|
|
1701
|
-
const contents = (0, import_smithy_client.map)({
|
|
1702
|
-
$metadata: deserializeMetadata(output)
|
|
1703
|
-
});
|
|
1704
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1705
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1706
|
-
componentVersions: import_smithy_client._json,
|
|
1707
|
-
nextToken: import_smithy_client.expectString
|
|
1708
|
-
});
|
|
1709
|
-
Object.assign(contents, doc);
|
|
1710
|
-
return contents;
|
|
1711
|
-
}, "de_ListComponentVersionsCommand");
|
|
1712
|
-
var de_ListComponentVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1713
|
-
const parsedOutput = {
|
|
1714
|
-
...output,
|
|
1715
|
-
body: await parseErrorBody(output.body, context)
|
|
1716
|
-
};
|
|
1717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
-
switch (errorCode) {
|
|
1719
|
-
case "AccessDeniedException":
|
|
1720
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1721
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "InternalServerException":
|
|
1723
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1724
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "ResourceNotFoundException":
|
|
1726
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1727
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ThrottlingException":
|
|
1729
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1730
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ValidationException":
|
|
1732
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1733
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1734
|
-
default:
|
|
1735
|
-
const parsedBody = parsedOutput.body;
|
|
1736
|
-
return throwDefaultError({
|
|
1737
|
-
output,
|
|
1738
|
-
parsedBody,
|
|
1739
|
-
errorCode
|
|
1740
|
-
});
|
|
1111
|
+
var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1112
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1113
|
+
return de_CommandError(output, context);
|
|
1114
|
+
}
|
|
1115
|
+
const contents = (0, import_smithy_client.map)({
|
|
1116
|
+
$metadata: deserializeMetadata(output)
|
|
1117
|
+
});
|
|
1118
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1119
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1120
|
+
components: (_) => de_ComponentList(_, context),
|
|
1121
|
+
nextToken: import_smithy_client.expectString
|
|
1122
|
+
});
|
|
1123
|
+
Object.assign(contents, doc);
|
|
1124
|
+
return contents;
|
|
1125
|
+
}, "de_ListComponentsCommand");
|
|
1126
|
+
var de_ListComponentVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1127
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
+
return de_CommandError(output, context);
|
|
1741
1129
|
}
|
|
1742
|
-
|
|
1130
|
+
const contents = (0, import_smithy_client.map)({
|
|
1131
|
+
$metadata: deserializeMetadata(output)
|
|
1132
|
+
});
|
|
1133
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1134
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1135
|
+
componentVersions: import_smithy_client._json,
|
|
1136
|
+
nextToken: import_smithy_client.expectString
|
|
1137
|
+
});
|
|
1138
|
+
Object.assign(contents, doc);
|
|
1139
|
+
return contents;
|
|
1140
|
+
}, "de_ListComponentVersionsCommand");
|
|
1743
1141
|
var de_ListCoreDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1744
1142
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1745
|
-
return
|
|
1143
|
+
return de_CommandError(output, context);
|
|
1746
1144
|
}
|
|
1747
1145
|
const contents = (0, import_smithy_client.map)({
|
|
1748
1146
|
$metadata: deserializeMetadata(output)
|
|
@@ -1755,37 +1153,9 @@ var de_ListCoreDevicesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1755
1153
|
Object.assign(contents, doc);
|
|
1756
1154
|
return contents;
|
|
1757
1155
|
}, "de_ListCoreDevicesCommand");
|
|
1758
|
-
var de_ListCoreDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1759
|
-
const parsedOutput = {
|
|
1760
|
-
...output,
|
|
1761
|
-
body: await parseErrorBody(output.body, context)
|
|
1762
|
-
};
|
|
1763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "AccessDeniedException":
|
|
1766
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1767
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "InternalServerException":
|
|
1769
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1770
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "ThrottlingException":
|
|
1772
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1773
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "ValidationException":
|
|
1775
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1776
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1777
|
-
default:
|
|
1778
|
-
const parsedBody = parsedOutput.body;
|
|
1779
|
-
return throwDefaultError({
|
|
1780
|
-
output,
|
|
1781
|
-
parsedBody,
|
|
1782
|
-
errorCode
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
}, "de_ListCoreDevicesCommandError");
|
|
1786
1156
|
var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1787
1157
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1788
|
-
return
|
|
1158
|
+
return de_CommandError(output, context);
|
|
1789
1159
|
}
|
|
1790
1160
|
const contents = (0, import_smithy_client.map)({
|
|
1791
1161
|
$metadata: deserializeMetadata(output)
|
|
@@ -1798,37 +1168,9 @@ var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1798
1168
|
Object.assign(contents, doc);
|
|
1799
1169
|
return contents;
|
|
1800
1170
|
}, "de_ListDeploymentsCommand");
|
|
1801
|
-
var de_ListDeploymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1802
|
-
const parsedOutput = {
|
|
1803
|
-
...output,
|
|
1804
|
-
body: await parseErrorBody(output.body, context)
|
|
1805
|
-
};
|
|
1806
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1807
|
-
switch (errorCode) {
|
|
1808
|
-
case "AccessDeniedException":
|
|
1809
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1810
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "InternalServerException":
|
|
1812
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1813
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ThrottlingException":
|
|
1815
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1816
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ValidationException":
|
|
1818
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1819
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1820
|
-
default:
|
|
1821
|
-
const parsedBody = parsedOutput.body;
|
|
1822
|
-
return throwDefaultError({
|
|
1823
|
-
output,
|
|
1824
|
-
parsedBody,
|
|
1825
|
-
errorCode
|
|
1826
|
-
});
|
|
1827
|
-
}
|
|
1828
|
-
}, "de_ListDeploymentsCommandError");
|
|
1829
1171
|
var de_ListEffectiveDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1830
1172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1831
|
-
return
|
|
1173
|
+
return de_CommandError(output, context);
|
|
1832
1174
|
}
|
|
1833
1175
|
const contents = (0, import_smithy_client.map)({
|
|
1834
1176
|
$metadata: deserializeMetadata(output)
|
|
@@ -1841,40 +1183,9 @@ var de_ListEffectiveDeploymentsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1841
1183
|
Object.assign(contents, doc);
|
|
1842
1184
|
return contents;
|
|
1843
1185
|
}, "de_ListEffectiveDeploymentsCommand");
|
|
1844
|
-
var de_ListEffectiveDeploymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1845
|
-
const parsedOutput = {
|
|
1846
|
-
...output,
|
|
1847
|
-
body: await parseErrorBody(output.body, context)
|
|
1848
|
-
};
|
|
1849
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
|
-
switch (errorCode) {
|
|
1851
|
-
case "AccessDeniedException":
|
|
1852
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1853
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "InternalServerException":
|
|
1855
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ResourceNotFoundException":
|
|
1858
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "ThrottlingException":
|
|
1861
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1862
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ValidationException":
|
|
1864
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1865
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1866
|
-
default:
|
|
1867
|
-
const parsedBody = parsedOutput.body;
|
|
1868
|
-
return throwDefaultError({
|
|
1869
|
-
output,
|
|
1870
|
-
parsedBody,
|
|
1871
|
-
errorCode
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
}, "de_ListEffectiveDeploymentsCommandError");
|
|
1875
1186
|
var de_ListInstalledComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1876
1187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1877
|
-
return
|
|
1188
|
+
return de_CommandError(output, context);
|
|
1878
1189
|
}
|
|
1879
1190
|
const contents = (0, import_smithy_client.map)({
|
|
1880
1191
|
$metadata: deserializeMetadata(output)
|
|
@@ -1887,40 +1198,9 @@ var de_ListInstalledComponentsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1887
1198
|
Object.assign(contents, doc);
|
|
1888
1199
|
return contents;
|
|
1889
1200
|
}, "de_ListInstalledComponentsCommand");
|
|
1890
|
-
var de_ListInstalledComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context)
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "AccessDeniedException":
|
|
1898
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1899
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "InternalServerException":
|
|
1901
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1902
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "ResourceNotFoundException":
|
|
1904
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1905
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "ThrottlingException":
|
|
1907
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1908
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "ValidationException":
|
|
1910
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1911
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1912
|
-
default:
|
|
1913
|
-
const parsedBody = parsedOutput.body;
|
|
1914
|
-
return throwDefaultError({
|
|
1915
|
-
output,
|
|
1916
|
-
parsedBody,
|
|
1917
|
-
errorCode
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
}, "de_ListInstalledComponentsCommandError");
|
|
1921
1201
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1922
1202
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1923
|
-
return
|
|
1203
|
+
return de_CommandError(output, context);
|
|
1924
1204
|
}
|
|
1925
1205
|
const contents = (0, import_smithy_client.map)({
|
|
1926
1206
|
$metadata: deserializeMetadata(output)
|
|
@@ -1932,34 +1212,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1932
1212
|
Object.assign(contents, doc);
|
|
1933
1213
|
return contents;
|
|
1934
1214
|
}, "de_ListTagsForResourceCommand");
|
|
1935
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
|
-
const parsedOutput = {
|
|
1937
|
-
...output,
|
|
1938
|
-
body: await parseErrorBody(output.body, context)
|
|
1939
|
-
};
|
|
1940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
-
switch (errorCode) {
|
|
1942
|
-
case "InternalServerException":
|
|
1943
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1944
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "ResourceNotFoundException":
|
|
1946
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1947
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "ValidationException":
|
|
1949
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1950
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1951
|
-
default:
|
|
1952
|
-
const parsedBody = parsedOutput.body;
|
|
1953
|
-
return throwDefaultError({
|
|
1954
|
-
output,
|
|
1955
|
-
parsedBody,
|
|
1956
|
-
errorCode
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1960
1215
|
var de_ResolveComponentCandidatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1961
1216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1962
|
-
return
|
|
1217
|
+
return de_CommandError(output, context);
|
|
1963
1218
|
}
|
|
1964
1219
|
const contents = (0, import_smithy_client.map)({
|
|
1965
1220
|
$metadata: deserializeMetadata(output)
|
|
@@ -1971,43 +1226,9 @@ var de_ResolveComponentCandidatesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1971
1226
|
Object.assign(contents, doc);
|
|
1972
1227
|
return contents;
|
|
1973
1228
|
}, "de_ResolveComponentCandidatesCommand");
|
|
1974
|
-
var de_ResolveComponentCandidatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1975
|
-
const parsedOutput = {
|
|
1976
|
-
...output,
|
|
1977
|
-
body: await parseErrorBody(output.body, context)
|
|
1978
|
-
};
|
|
1979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
|
-
switch (errorCode) {
|
|
1981
|
-
case "AccessDeniedException":
|
|
1982
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1983
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "ConflictException":
|
|
1985
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1986
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "InternalServerException":
|
|
1988
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1989
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "ResourceNotFoundException":
|
|
1991
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1992
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "ThrottlingException":
|
|
1994
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1995
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "ValidationException":
|
|
1997
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1998
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1999
|
-
default:
|
|
2000
|
-
const parsedBody = parsedOutput.body;
|
|
2001
|
-
return throwDefaultError({
|
|
2002
|
-
output,
|
|
2003
|
-
parsedBody,
|
|
2004
|
-
errorCode
|
|
2005
|
-
});
|
|
2006
|
-
}
|
|
2007
|
-
}, "de_ResolveComponentCandidatesCommandError");
|
|
2008
1229
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2009
1230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
|
-
return
|
|
1231
|
+
return de_CommandError(output, context);
|
|
2011
1232
|
}
|
|
2012
1233
|
const contents = (0, import_smithy_client.map)({
|
|
2013
1234
|
$metadata: deserializeMetadata(output)
|
|
@@ -2015,34 +1236,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2015
1236
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2016
1237
|
return contents;
|
|
2017
1238
|
}, "de_TagResourceCommand");
|
|
2018
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2019
|
-
const parsedOutput = {
|
|
2020
|
-
...output,
|
|
2021
|
-
body: await parseErrorBody(output.body, context)
|
|
2022
|
-
};
|
|
2023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
|
-
switch (errorCode) {
|
|
2025
|
-
case "InternalServerException":
|
|
2026
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
2027
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ResourceNotFoundException":
|
|
2029
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
2030
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "ValidationException":
|
|
2032
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
2033
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2034
|
-
default:
|
|
2035
|
-
const parsedBody = parsedOutput.body;
|
|
2036
|
-
return throwDefaultError({
|
|
2037
|
-
output,
|
|
2038
|
-
parsedBody,
|
|
2039
|
-
errorCode
|
|
2040
|
-
});
|
|
2041
|
-
}
|
|
2042
|
-
}, "de_TagResourceCommandError");
|
|
2043
1239
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2044
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2045
|
-
return
|
|
1241
|
+
return de_CommandError(output, context);
|
|
2046
1242
|
}
|
|
2047
1243
|
const contents = (0, import_smithy_client.map)({
|
|
2048
1244
|
$metadata: deserializeMetadata(output)
|
|
@@ -2050,34 +1246,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2050
1246
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2051
1247
|
return contents;
|
|
2052
1248
|
}, "de_UntagResourceCommand");
|
|
2053
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2054
|
-
const parsedOutput = {
|
|
2055
|
-
...output,
|
|
2056
|
-
body: await parseErrorBody(output.body, context)
|
|
2057
|
-
};
|
|
2058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2059
|
-
switch (errorCode) {
|
|
2060
|
-
case "InternalServerException":
|
|
2061
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
2062
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ResourceNotFoundException":
|
|
2064
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
2065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ValidationException":
|
|
2067
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
2068
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2069
|
-
default:
|
|
2070
|
-
const parsedBody = parsedOutput.body;
|
|
2071
|
-
return throwDefaultError({
|
|
2072
|
-
output,
|
|
2073
|
-
parsedBody,
|
|
2074
|
-
errorCode
|
|
2075
|
-
});
|
|
2076
|
-
}
|
|
2077
|
-
}, "de_UntagResourceCommandError");
|
|
2078
1249
|
var de_UpdateConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2079
1250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2080
|
-
return
|
|
1251
|
+
return de_CommandError(output, context);
|
|
2081
1252
|
}
|
|
2082
1253
|
const contents = (0, import_smithy_client.map)({
|
|
2083
1254
|
$metadata: deserializeMetadata(output)
|
|
@@ -2090,7 +1261,7 @@ var de_UpdateConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2090
1261
|
Object.assign(contents, doc);
|
|
2091
1262
|
return contents;
|
|
2092
1263
|
}, "de_UpdateConnectivityInfoCommand");
|
|
2093
|
-
var
|
|
1264
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2094
1265
|
const parsedOutput = {
|
|
2095
1266
|
...output,
|
|
2096
1267
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2103,6 +1274,24 @@ var de_UpdateConnectivityInfoCommandError = /* @__PURE__ */ __name(async (output
|
|
|
2103
1274
|
case "ValidationException":
|
|
2104
1275
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
2105
1276
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1277
|
+
case "AccessDeniedException":
|
|
1278
|
+
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1279
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1280
|
+
case "ResourceNotFoundException":
|
|
1281
|
+
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1282
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1283
|
+
case "ThrottlingException":
|
|
1284
|
+
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1285
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1286
|
+
case "ConflictException":
|
|
1287
|
+
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1288
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1289
|
+
case "RequestAlreadyInProgressException":
|
|
1290
|
+
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
1291
|
+
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
1292
|
+
case "ServiceQuotaExceededException":
|
|
1293
|
+
case "com.amazonaws.greengrassv2#ServiceQuotaExceededException":
|
|
1294
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2106
1295
|
default:
|
|
2107
1296
|
const parsedBody = parsedOutput.body;
|
|
2108
1297
|
return throwDefaultError({
|
|
@@ -2111,7 +1300,7 @@ var de_UpdateConnectivityInfoCommandError = /* @__PURE__ */ __name(async (output
|
|
|
2111
1300
|
errorCode
|
|
2112
1301
|
});
|
|
2113
1302
|
}
|
|
2114
|
-
}, "
|
|
1303
|
+
}, "de_CommandError");
|
|
2115
1304
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(GreengrassV2ServiceException);
|
|
2116
1305
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2117
1306
|
const contents = (0, import_smithy_client.map)({});
|