@aws-sdk/client-redshift-serverless 3.525.0 → 3.529.1
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 +57 -98
- package/dist-es/protocols/Aws_json1_1.js +1 -41
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -919,7 +919,7 @@ var de_ConvertRecoveryPointToSnapshotCommand = /* @__PURE__ */ __name(async (out
|
|
|
919
919
|
if (output.statusCode >= 300) {
|
|
920
920
|
return de_CommandError(output, context);
|
|
921
921
|
}
|
|
922
|
-
const data = await
|
|
922
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
923
923
|
let contents = {};
|
|
924
924
|
contents = de_ConvertRecoveryPointToSnapshotResponse(data, context);
|
|
925
925
|
const response = {
|
|
@@ -932,7 +932,7 @@ var de_CreateCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
932
932
|
if (output.statusCode >= 300) {
|
|
933
933
|
return de_CommandError(output, context);
|
|
934
934
|
}
|
|
935
|
-
const data = await
|
|
935
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
936
936
|
let contents = {};
|
|
937
937
|
contents = de_CreateCustomDomainAssociationResponse(data, context);
|
|
938
938
|
const response = {
|
|
@@ -945,7 +945,7 @@ var de_CreateEndpointAccessCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
945
945
|
if (output.statusCode >= 300) {
|
|
946
946
|
return de_CommandError(output, context);
|
|
947
947
|
}
|
|
948
|
-
const data = await
|
|
948
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
949
949
|
let contents = {};
|
|
950
950
|
contents = de_CreateEndpointAccessResponse(data, context);
|
|
951
951
|
const response = {
|
|
@@ -958,7 +958,7 @@ var de_CreateNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
958
958
|
if (output.statusCode >= 300) {
|
|
959
959
|
return de_CommandError(output, context);
|
|
960
960
|
}
|
|
961
|
-
const data = await
|
|
961
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
962
962
|
let contents = {};
|
|
963
963
|
contents = de_CreateNamespaceResponse(data, context);
|
|
964
964
|
const response = {
|
|
@@ -971,7 +971,7 @@ var de_CreateScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
971
971
|
if (output.statusCode >= 300) {
|
|
972
972
|
return de_CommandError(output, context);
|
|
973
973
|
}
|
|
974
|
-
const data = await
|
|
974
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
975
975
|
let contents = {};
|
|
976
976
|
contents = de_CreateScheduledActionResponse(data, context);
|
|
977
977
|
const response = {
|
|
@@ -984,7 +984,7 @@ var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
984
984
|
if (output.statusCode >= 300) {
|
|
985
985
|
return de_CommandError(output, context);
|
|
986
986
|
}
|
|
987
|
-
const data = await
|
|
987
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
988
988
|
let contents = {};
|
|
989
989
|
contents = de_CreateSnapshotResponse(data, context);
|
|
990
990
|
const response = {
|
|
@@ -997,7 +997,7 @@ var de_CreateSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
997
997
|
if (output.statusCode >= 300) {
|
|
998
998
|
return de_CommandError(output, context);
|
|
999
999
|
}
|
|
1000
|
-
const data = await
|
|
1000
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1001
1001
|
let contents = {};
|
|
1002
1002
|
contents = (0, import_smithy_client._json)(data);
|
|
1003
1003
|
const response = {
|
|
@@ -1010,7 +1010,7 @@ var de_CreateUsageLimitCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1010
1010
|
if (output.statusCode >= 300) {
|
|
1011
1011
|
return de_CommandError(output, context);
|
|
1012
1012
|
}
|
|
1013
|
-
const data = await
|
|
1013
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1014
1014
|
let contents = {};
|
|
1015
1015
|
contents = (0, import_smithy_client._json)(data);
|
|
1016
1016
|
const response = {
|
|
@@ -1023,7 +1023,7 @@ var de_CreateWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1023
1023
|
if (output.statusCode >= 300) {
|
|
1024
1024
|
return de_CommandError(output, context);
|
|
1025
1025
|
}
|
|
1026
|
-
const data = await
|
|
1026
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1027
1027
|
let contents = {};
|
|
1028
1028
|
contents = de_CreateWorkgroupResponse(data, context);
|
|
1029
1029
|
const response = {
|
|
@@ -1036,7 +1036,7 @@ var de_DeleteCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1036
1036
|
if (output.statusCode >= 300) {
|
|
1037
1037
|
return de_CommandError(output, context);
|
|
1038
1038
|
}
|
|
1039
|
-
const data = await
|
|
1039
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1040
1040
|
let contents = {};
|
|
1041
1041
|
contents = (0, import_smithy_client._json)(data);
|
|
1042
1042
|
const response = {
|
|
@@ -1049,7 +1049,7 @@ var de_DeleteEndpointAccessCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1049
1049
|
if (output.statusCode >= 300) {
|
|
1050
1050
|
return de_CommandError(output, context);
|
|
1051
1051
|
}
|
|
1052
|
-
const data = await
|
|
1052
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1053
1053
|
let contents = {};
|
|
1054
1054
|
contents = de_DeleteEndpointAccessResponse(data, context);
|
|
1055
1055
|
const response = {
|
|
@@ -1062,7 +1062,7 @@ var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1062
1062
|
if (output.statusCode >= 300) {
|
|
1063
1063
|
return de_CommandError(output, context);
|
|
1064
1064
|
}
|
|
1065
|
-
const data = await
|
|
1065
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1066
1066
|
let contents = {};
|
|
1067
1067
|
contents = de_DeleteNamespaceResponse(data, context);
|
|
1068
1068
|
const response = {
|
|
@@ -1075,7 +1075,7 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1075
1075
|
if (output.statusCode >= 300) {
|
|
1076
1076
|
return de_CommandError(output, context);
|
|
1077
1077
|
}
|
|
1078
|
-
const data = await
|
|
1078
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1079
1079
|
let contents = {};
|
|
1080
1080
|
contents = (0, import_smithy_client._json)(data);
|
|
1081
1081
|
const response = {
|
|
@@ -1088,7 +1088,7 @@ var de_DeleteScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1088
1088
|
if (output.statusCode >= 300) {
|
|
1089
1089
|
return de_CommandError(output, context);
|
|
1090
1090
|
}
|
|
1091
|
-
const data = await
|
|
1091
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1092
1092
|
let contents = {};
|
|
1093
1093
|
contents = de_DeleteScheduledActionResponse(data, context);
|
|
1094
1094
|
const response = {
|
|
@@ -1101,7 +1101,7 @@ var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1101
1101
|
if (output.statusCode >= 300) {
|
|
1102
1102
|
return de_CommandError(output, context);
|
|
1103
1103
|
}
|
|
1104
|
-
const data = await
|
|
1104
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1105
1105
|
let contents = {};
|
|
1106
1106
|
contents = de_DeleteSnapshotResponse(data, context);
|
|
1107
1107
|
const response = {
|
|
@@ -1114,7 +1114,7 @@ var de_DeleteSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1114
1114
|
if (output.statusCode >= 300) {
|
|
1115
1115
|
return de_CommandError(output, context);
|
|
1116
1116
|
}
|
|
1117
|
-
const data = await
|
|
1117
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1118
1118
|
let contents = {};
|
|
1119
1119
|
contents = (0, import_smithy_client._json)(data);
|
|
1120
1120
|
const response = {
|
|
@@ -1127,7 +1127,7 @@ var de_DeleteUsageLimitCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1127
1127
|
if (output.statusCode >= 300) {
|
|
1128
1128
|
return de_CommandError(output, context);
|
|
1129
1129
|
}
|
|
1130
|
-
const data = await
|
|
1130
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1131
1131
|
let contents = {};
|
|
1132
1132
|
contents = (0, import_smithy_client._json)(data);
|
|
1133
1133
|
const response = {
|
|
@@ -1140,7 +1140,7 @@ var de_DeleteWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1140
1140
|
if (output.statusCode >= 300) {
|
|
1141
1141
|
return de_CommandError(output, context);
|
|
1142
1142
|
}
|
|
1143
|
-
const data = await
|
|
1143
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1144
1144
|
let contents = {};
|
|
1145
1145
|
contents = de_DeleteWorkgroupResponse(data, context);
|
|
1146
1146
|
const response = {
|
|
@@ -1153,7 +1153,7 @@ var de_GetCredentialsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1153
1153
|
if (output.statusCode >= 300) {
|
|
1154
1154
|
return de_CommandError(output, context);
|
|
1155
1155
|
}
|
|
1156
|
-
const data = await
|
|
1156
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1157
1157
|
let contents = {};
|
|
1158
1158
|
contents = de_GetCredentialsResponse(data, context);
|
|
1159
1159
|
const response = {
|
|
@@ -1166,7 +1166,7 @@ var de_GetCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1166
1166
|
if (output.statusCode >= 300) {
|
|
1167
1167
|
return de_CommandError(output, context);
|
|
1168
1168
|
}
|
|
1169
|
-
const data = await
|
|
1169
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1170
1170
|
let contents = {};
|
|
1171
1171
|
contents = de_GetCustomDomainAssociationResponse(data, context);
|
|
1172
1172
|
const response = {
|
|
@@ -1179,7 +1179,7 @@ var de_GetEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1179
1179
|
if (output.statusCode >= 300) {
|
|
1180
1180
|
return de_CommandError(output, context);
|
|
1181
1181
|
}
|
|
1182
|
-
const data = await
|
|
1182
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1183
1183
|
let contents = {};
|
|
1184
1184
|
contents = de_GetEndpointAccessResponse(data, context);
|
|
1185
1185
|
const response = {
|
|
@@ -1192,7 +1192,7 @@ var de_GetNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1192
1192
|
if (output.statusCode >= 300) {
|
|
1193
1193
|
return de_CommandError(output, context);
|
|
1194
1194
|
}
|
|
1195
|
-
const data = await
|
|
1195
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1196
1196
|
let contents = {};
|
|
1197
1197
|
contents = de_GetNamespaceResponse(data, context);
|
|
1198
1198
|
const response = {
|
|
@@ -1205,7 +1205,7 @@ var de_GetRecoveryPointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1205
1205
|
if (output.statusCode >= 300) {
|
|
1206
1206
|
return de_CommandError(output, context);
|
|
1207
1207
|
}
|
|
1208
|
-
const data = await
|
|
1208
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1209
1209
|
let contents = {};
|
|
1210
1210
|
contents = de_GetRecoveryPointResponse(data, context);
|
|
1211
1211
|
const response = {
|
|
@@ -1218,7 +1218,7 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1218
1218
|
if (output.statusCode >= 300) {
|
|
1219
1219
|
return de_CommandError(output, context);
|
|
1220
1220
|
}
|
|
1221
|
-
const data = await
|
|
1221
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1222
1222
|
let contents = {};
|
|
1223
1223
|
contents = (0, import_smithy_client._json)(data);
|
|
1224
1224
|
const response = {
|
|
@@ -1231,7 +1231,7 @@ var de_GetScheduledActionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1231
1231
|
if (output.statusCode >= 300) {
|
|
1232
1232
|
return de_CommandError(output, context);
|
|
1233
1233
|
}
|
|
1234
|
-
const data = await
|
|
1234
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1235
1235
|
let contents = {};
|
|
1236
1236
|
contents = de_GetScheduledActionResponse(data, context);
|
|
1237
1237
|
const response = {
|
|
@@ -1244,7 +1244,7 @@ var de_GetSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1244
1244
|
if (output.statusCode >= 300) {
|
|
1245
1245
|
return de_CommandError(output, context);
|
|
1246
1246
|
}
|
|
1247
|
-
const data = await
|
|
1247
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1248
1248
|
let contents = {};
|
|
1249
1249
|
contents = de_GetSnapshotResponse(data, context);
|
|
1250
1250
|
const response = {
|
|
@@ -1257,7 +1257,7 @@ var de_GetTableRestoreStatusCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1257
1257
|
if (output.statusCode >= 300) {
|
|
1258
1258
|
return de_CommandError(output, context);
|
|
1259
1259
|
}
|
|
1260
|
-
const data = await
|
|
1260
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1261
1261
|
let contents = {};
|
|
1262
1262
|
contents = de_GetTableRestoreStatusResponse(data, context);
|
|
1263
1263
|
const response = {
|
|
@@ -1270,7 +1270,7 @@ var de_GetUsageLimitCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1270
1270
|
if (output.statusCode >= 300) {
|
|
1271
1271
|
return de_CommandError(output, context);
|
|
1272
1272
|
}
|
|
1273
|
-
const data = await
|
|
1273
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1274
1274
|
let contents = {};
|
|
1275
1275
|
contents = (0, import_smithy_client._json)(data);
|
|
1276
1276
|
const response = {
|
|
@@ -1283,7 +1283,7 @@ var de_GetWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1283
1283
|
if (output.statusCode >= 300) {
|
|
1284
1284
|
return de_CommandError(output, context);
|
|
1285
1285
|
}
|
|
1286
|
-
const data = await
|
|
1286
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1287
1287
|
let contents = {};
|
|
1288
1288
|
contents = de_GetWorkgroupResponse(data, context);
|
|
1289
1289
|
const response = {
|
|
@@ -1296,7 +1296,7 @@ var de_ListCustomDomainAssociationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1296
1296
|
if (output.statusCode >= 300) {
|
|
1297
1297
|
return de_CommandError(output, context);
|
|
1298
1298
|
}
|
|
1299
|
-
const data = await
|
|
1299
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1300
1300
|
let contents = {};
|
|
1301
1301
|
contents = de_ListCustomDomainAssociationsResponse(data, context);
|
|
1302
1302
|
const response = {
|
|
@@ -1309,7 +1309,7 @@ var de_ListEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1309
1309
|
if (output.statusCode >= 300) {
|
|
1310
1310
|
return de_CommandError(output, context);
|
|
1311
1311
|
}
|
|
1312
|
-
const data = await
|
|
1312
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1313
1313
|
let contents = {};
|
|
1314
1314
|
contents = de_ListEndpointAccessResponse(data, context);
|
|
1315
1315
|
const response = {
|
|
@@ -1322,7 +1322,7 @@ var de_ListNamespacesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1322
1322
|
if (output.statusCode >= 300) {
|
|
1323
1323
|
return de_CommandError(output, context);
|
|
1324
1324
|
}
|
|
1325
|
-
const data = await
|
|
1325
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1326
1326
|
let contents = {};
|
|
1327
1327
|
contents = de_ListNamespacesResponse(data, context);
|
|
1328
1328
|
const response = {
|
|
@@ -1335,7 +1335,7 @@ var de_ListRecoveryPointsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1335
1335
|
if (output.statusCode >= 300) {
|
|
1336
1336
|
return de_CommandError(output, context);
|
|
1337
1337
|
}
|
|
1338
|
-
const data = await
|
|
1338
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1339
1339
|
let contents = {};
|
|
1340
1340
|
contents = de_ListRecoveryPointsResponse(data, context);
|
|
1341
1341
|
const response = {
|
|
@@ -1348,7 +1348,7 @@ var de_ListScheduledActionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1348
1348
|
if (output.statusCode >= 300) {
|
|
1349
1349
|
return de_CommandError(output, context);
|
|
1350
1350
|
}
|
|
1351
|
-
const data = await
|
|
1351
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1352
1352
|
let contents = {};
|
|
1353
1353
|
contents = (0, import_smithy_client._json)(data);
|
|
1354
1354
|
const response = {
|
|
@@ -1361,7 +1361,7 @@ var de_ListSnapshotCopyConfigurationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1361
1361
|
if (output.statusCode >= 300) {
|
|
1362
1362
|
return de_CommandError(output, context);
|
|
1363
1363
|
}
|
|
1364
|
-
const data = await
|
|
1364
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1365
1365
|
let contents = {};
|
|
1366
1366
|
contents = (0, import_smithy_client._json)(data);
|
|
1367
1367
|
const response = {
|
|
@@ -1374,7 +1374,7 @@ var de_ListSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1374
1374
|
if (output.statusCode >= 300) {
|
|
1375
1375
|
return de_CommandError(output, context);
|
|
1376
1376
|
}
|
|
1377
|
-
const data = await
|
|
1377
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1378
1378
|
let contents = {};
|
|
1379
1379
|
contents = de_ListSnapshotsResponse(data, context);
|
|
1380
1380
|
const response = {
|
|
@@ -1387,7 +1387,7 @@ var de_ListTableRestoreStatusCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1387
1387
|
if (output.statusCode >= 300) {
|
|
1388
1388
|
return de_CommandError(output, context);
|
|
1389
1389
|
}
|
|
1390
|
-
const data = await
|
|
1390
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1391
1391
|
let contents = {};
|
|
1392
1392
|
contents = de_ListTableRestoreStatusResponse(data, context);
|
|
1393
1393
|
const response = {
|
|
@@ -1400,7 +1400,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1400
1400
|
if (output.statusCode >= 300) {
|
|
1401
1401
|
return de_CommandError(output, context);
|
|
1402
1402
|
}
|
|
1403
|
-
const data = await
|
|
1403
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1404
1404
|
let contents = {};
|
|
1405
1405
|
contents = (0, import_smithy_client._json)(data);
|
|
1406
1406
|
const response = {
|
|
@@ -1413,7 +1413,7 @@ var de_ListUsageLimitsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1413
1413
|
if (output.statusCode >= 300) {
|
|
1414
1414
|
return de_CommandError(output, context);
|
|
1415
1415
|
}
|
|
1416
|
-
const data = await
|
|
1416
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1417
1417
|
let contents = {};
|
|
1418
1418
|
contents = (0, import_smithy_client._json)(data);
|
|
1419
1419
|
const response = {
|
|
@@ -1426,7 +1426,7 @@ var de_ListWorkgroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1426
1426
|
if (output.statusCode >= 300) {
|
|
1427
1427
|
return de_CommandError(output, context);
|
|
1428
1428
|
}
|
|
1429
|
-
const data = await
|
|
1429
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1430
1430
|
let contents = {};
|
|
1431
1431
|
contents = de_ListWorkgroupsResponse(data, context);
|
|
1432
1432
|
const response = {
|
|
@@ -1439,7 +1439,7 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1439
1439
|
if (output.statusCode >= 300) {
|
|
1440
1440
|
return de_CommandError(output, context);
|
|
1441
1441
|
}
|
|
1442
|
-
const data = await
|
|
1442
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1443
1443
|
let contents = {};
|
|
1444
1444
|
contents = (0, import_smithy_client._json)(data);
|
|
1445
1445
|
const response = {
|
|
@@ -1452,7 +1452,7 @@ var de_RestoreFromRecoveryPointCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1452
1452
|
if (output.statusCode >= 300) {
|
|
1453
1453
|
return de_CommandError(output, context);
|
|
1454
1454
|
}
|
|
1455
|
-
const data = await
|
|
1455
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1456
1456
|
let contents = {};
|
|
1457
1457
|
contents = de_RestoreFromRecoveryPointResponse(data, context);
|
|
1458
1458
|
const response = {
|
|
@@ -1465,7 +1465,7 @@ var de_RestoreFromSnapshotCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1465
1465
|
if (output.statusCode >= 300) {
|
|
1466
1466
|
return de_CommandError(output, context);
|
|
1467
1467
|
}
|
|
1468
|
-
const data = await
|
|
1468
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1469
1469
|
let contents = {};
|
|
1470
1470
|
contents = de_RestoreFromSnapshotResponse(data, context);
|
|
1471
1471
|
const response = {
|
|
@@ -1478,7 +1478,7 @@ var de_RestoreTableFromRecoveryPointCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1478
1478
|
if (output.statusCode >= 300) {
|
|
1479
1479
|
return de_CommandError(output, context);
|
|
1480
1480
|
}
|
|
1481
|
-
const data = await
|
|
1481
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1482
1482
|
let contents = {};
|
|
1483
1483
|
contents = de_RestoreTableFromRecoveryPointResponse(data, context);
|
|
1484
1484
|
const response = {
|
|
@@ -1491,7 +1491,7 @@ var de_RestoreTableFromSnapshotCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1491
1491
|
if (output.statusCode >= 300) {
|
|
1492
1492
|
return de_CommandError(output, context);
|
|
1493
1493
|
}
|
|
1494
|
-
const data = await
|
|
1494
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1495
1495
|
let contents = {};
|
|
1496
1496
|
contents = de_RestoreTableFromSnapshotResponse(data, context);
|
|
1497
1497
|
const response = {
|
|
@@ -1504,7 +1504,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1504
1504
|
if (output.statusCode >= 300) {
|
|
1505
1505
|
return de_CommandError(output, context);
|
|
1506
1506
|
}
|
|
1507
|
-
const data = await
|
|
1507
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1508
1508
|
let contents = {};
|
|
1509
1509
|
contents = (0, import_smithy_client._json)(data);
|
|
1510
1510
|
const response = {
|
|
@@ -1517,7 +1517,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1517
1517
|
if (output.statusCode >= 300) {
|
|
1518
1518
|
return de_CommandError(output, context);
|
|
1519
1519
|
}
|
|
1520
|
-
const data = await
|
|
1520
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1521
1521
|
let contents = {};
|
|
1522
1522
|
contents = (0, import_smithy_client._json)(data);
|
|
1523
1523
|
const response = {
|
|
@@ -1530,7 +1530,7 @@ var de_UpdateCustomDomainAssociationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1530
1530
|
if (output.statusCode >= 300) {
|
|
1531
1531
|
return de_CommandError(output, context);
|
|
1532
1532
|
}
|
|
1533
|
-
const data = await
|
|
1533
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1534
1534
|
let contents = {};
|
|
1535
1535
|
contents = de_UpdateCustomDomainAssociationResponse(data, context);
|
|
1536
1536
|
const response = {
|
|
@@ -1543,7 +1543,7 @@ var de_UpdateEndpointAccessCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1543
1543
|
if (output.statusCode >= 300) {
|
|
1544
1544
|
return de_CommandError(output, context);
|
|
1545
1545
|
}
|
|
1546
|
-
const data = await
|
|
1546
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1547
1547
|
let contents = {};
|
|
1548
1548
|
contents = de_UpdateEndpointAccessResponse(data, context);
|
|
1549
1549
|
const response = {
|
|
@@ -1556,7 +1556,7 @@ var de_UpdateNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1556
1556
|
if (output.statusCode >= 300) {
|
|
1557
1557
|
return de_CommandError(output, context);
|
|
1558
1558
|
}
|
|
1559
|
-
const data = await
|
|
1559
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1560
1560
|
let contents = {};
|
|
1561
1561
|
contents = de_UpdateNamespaceResponse(data, context);
|
|
1562
1562
|
const response = {
|
|
@@ -1569,7 +1569,7 @@ var de_UpdateScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1569
1569
|
if (output.statusCode >= 300) {
|
|
1570
1570
|
return de_CommandError(output, context);
|
|
1571
1571
|
}
|
|
1572
|
-
const data = await
|
|
1572
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1573
1573
|
let contents = {};
|
|
1574
1574
|
contents = de_UpdateScheduledActionResponse(data, context);
|
|
1575
1575
|
const response = {
|
|
@@ -1582,7 +1582,7 @@ var de_UpdateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1582
1582
|
if (output.statusCode >= 300) {
|
|
1583
1583
|
return de_CommandError(output, context);
|
|
1584
1584
|
}
|
|
1585
|
-
const data = await
|
|
1585
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1586
1586
|
let contents = {};
|
|
1587
1587
|
contents = de_UpdateSnapshotResponse(data, context);
|
|
1588
1588
|
const response = {
|
|
@@ -1595,7 +1595,7 @@ var de_UpdateSnapshotCopyConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1595
1595
|
if (output.statusCode >= 300) {
|
|
1596
1596
|
return de_CommandError(output, context);
|
|
1597
1597
|
}
|
|
1598
|
-
const data = await
|
|
1598
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1599
1599
|
let contents = {};
|
|
1600
1600
|
contents = (0, import_smithy_client._json)(data);
|
|
1601
1601
|
const response = {
|
|
@@ -1608,7 +1608,7 @@ var de_UpdateUsageLimitCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1608
1608
|
if (output.statusCode >= 300) {
|
|
1609
1609
|
return de_CommandError(output, context);
|
|
1610
1610
|
}
|
|
1611
|
-
const data = await
|
|
1611
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1612
1612
|
let contents = {};
|
|
1613
1613
|
contents = (0, import_smithy_client._json)(data);
|
|
1614
1614
|
const response = {
|
|
@@ -1621,7 +1621,7 @@ var de_UpdateWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1621
1621
|
if (output.statusCode >= 300) {
|
|
1622
1622
|
return de_CommandError(output, context);
|
|
1623
1623
|
}
|
|
1624
|
-
const data = await
|
|
1624
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1625
1625
|
let contents = {};
|
|
1626
1626
|
contents = de_UpdateWorkgroupResponse(data, context);
|
|
1627
1627
|
const response = {
|
|
@@ -1633,9 +1633,9 @@ var de_UpdateWorkgroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1633
1633
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1634
1634
|
const parsedOutput = {
|
|
1635
1635
|
...output,
|
|
1636
|
-
body: await
|
|
1636
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1637
1637
|
};
|
|
1638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1639
1639
|
switch (errorCode) {
|
|
1640
1640
|
case "ConflictException":
|
|
1641
1641
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
@@ -2231,7 +2231,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2231
2231
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2232
2232
|
cfId: output.headers["x-amz-cf-id"]
|
|
2233
2233
|
}), "deserializeMetadata");
|
|
2234
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2235
2234
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(RedshiftServerlessServiceException);
|
|
2236
2235
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2237
2236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2258,46 +2257,6 @@ function sharedHeaders(operation) {
|
|
|
2258
2257
|
};
|
|
2259
2258
|
}
|
|
2260
2259
|
__name(sharedHeaders, "sharedHeaders");
|
|
2261
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2262
|
-
if (encoded.length) {
|
|
2263
|
-
return JSON.parse(encoded);
|
|
2264
|
-
}
|
|
2265
|
-
return {};
|
|
2266
|
-
}), "parseBody");
|
|
2267
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2268
|
-
const value = await parseBody(errorBody, context);
|
|
2269
|
-
value.message = value.message ?? value.Message;
|
|
2270
|
-
return value;
|
|
2271
|
-
}, "parseErrorBody");
|
|
2272
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2273
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2274
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2275
|
-
let cleanValue = rawValue;
|
|
2276
|
-
if (typeof cleanValue === "number") {
|
|
2277
|
-
cleanValue = cleanValue.toString();
|
|
2278
|
-
}
|
|
2279
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2280
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2281
|
-
}
|
|
2282
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2283
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2284
|
-
}
|
|
2285
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2286
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2287
|
-
}
|
|
2288
|
-
return cleanValue;
|
|
2289
|
-
}, "sanitizeErrorCode");
|
|
2290
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2291
|
-
if (headerKey !== void 0) {
|
|
2292
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2293
|
-
}
|
|
2294
|
-
if (data.code !== void 0) {
|
|
2295
|
-
return sanitizeErrorCode(data.code);
|
|
2296
|
-
}
|
|
2297
|
-
if (data["__type"] !== void 0) {
|
|
2298
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2299
|
-
}
|
|
2300
|
-
}, "loadRestJsonErrorCode");
|
|
2301
2260
|
|
|
2302
2261
|
// src/commands/ConvertRecoveryPointToSnapshotCommand.ts
|
|
2303
2262
|
var _ConvertRecoveryPointToSnapshotCommand = class _ConvertRecoveryPointToSnapshotCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InsufficientCapacityException, InternalServerException, InvalidPaginationException, ResourceNotFoundException, Schedule, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
@@ -1691,43 +1691,3 @@ function sharedHeaders(operation) {
|
|
|
1691
1691
|
"x-amz-target": `RedshiftServerless.${operation}`,
|
|
1692
1692
|
};
|
|
1693
1693
|
}
|
|
1694
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1695
|
-
if (encoded.length) {
|
|
1696
|
-
return JSON.parse(encoded);
|
|
1697
|
-
}
|
|
1698
|
-
return {};
|
|
1699
|
-
});
|
|
1700
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1701
|
-
const value = await parseBody(errorBody, context);
|
|
1702
|
-
value.message = value.message ?? value.Message;
|
|
1703
|
-
return value;
|
|
1704
|
-
};
|
|
1705
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1706
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1707
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1708
|
-
let cleanValue = rawValue;
|
|
1709
|
-
if (typeof cleanValue === "number") {
|
|
1710
|
-
cleanValue = cleanValue.toString();
|
|
1711
|
-
}
|
|
1712
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1713
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1714
|
-
}
|
|
1715
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1716
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1717
|
-
}
|
|
1718
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1719
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1720
|
-
}
|
|
1721
|
-
return cleanValue;
|
|
1722
|
-
};
|
|
1723
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1724
|
-
if (headerKey !== undefined) {
|
|
1725
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1726
|
-
}
|
|
1727
|
-
if (data.code !== undefined) {
|
|
1728
|
-
return sanitizeErrorCode(data.code);
|
|
1729
|
-
}
|
|
1730
|
-
if (data["__type"] !== undefined) {
|
|
1731
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1732
|
-
}
|
|
1733
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-redshift-serverless",
|
|
3
3
|
"description": "AWS SDK for JavaScript Redshift Serverless Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-redshift-serverless",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|