@aws-sdk/client-cleanroomsml 3.523.0 → 3.529.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 +20 -60
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/CleanRoomsML.js +0 -1
- package/dist-cjs/CleanRoomsMLClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateAudienceModelCommand.js +0 -1
- package/dist-cjs/commands/CreateConfiguredAudienceModelCommand.js +0 -1
- package/dist-cjs/commands/CreateTrainingDatasetCommand.js +0 -1
- package/dist-cjs/commands/DeleteAudienceGenerationJobCommand.js +0 -1
- package/dist-cjs/commands/DeleteAudienceModelCommand.js +0 -1
- package/dist-cjs/commands/DeleteConfiguredAudienceModelCommand.js +0 -1
- package/dist-cjs/commands/DeleteConfiguredAudienceModelPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteTrainingDatasetCommand.js +0 -1
- package/dist-cjs/commands/GetAudienceGenerationJobCommand.js +0 -1
- package/dist-cjs/commands/GetAudienceModelCommand.js +0 -1
- package/dist-cjs/commands/GetConfiguredAudienceModelCommand.js +0 -1
- package/dist-cjs/commands/GetConfiguredAudienceModelPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetTrainingDatasetCommand.js +0 -1
- package/dist-cjs/commands/ListAudienceExportJobsCommand.js +0 -1
- package/dist-cjs/commands/ListAudienceGenerationJobsCommand.js +0 -1
- package/dist-cjs/commands/ListAudienceModelsCommand.js +0 -1
- package/dist-cjs/commands/ListConfiguredAudienceModelsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListTrainingDatasetsCommand.js +0 -1
- package/dist-cjs/commands/PutConfiguredAudienceModelPolicyCommand.js +0 -1
- package/dist-cjs/commands/StartAudienceExportJobCommand.js +0 -1
- package/dist-cjs/commands/StartAudienceGenerationJobCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateConfiguredAudienceModelCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/CleanRoomsMLServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAudienceExportJobsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAudienceGenerationJobsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAudienceModelsPaginator.js +0 -1
- package/dist-cjs/pagination/ListConfiguredAudienceModelsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTrainingDatasetsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -228,6 +228,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
228
228
|
var import_types = require("@smithy/types");
|
|
229
229
|
|
|
230
230
|
// src/protocols/Aws_restJson1.ts
|
|
231
|
+
var import_core2 = require("@aws-sdk/core");
|
|
231
232
|
|
|
232
233
|
|
|
233
234
|
|
|
@@ -736,7 +737,7 @@ var de_CreateAudienceModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
736
737
|
const contents = (0, import_smithy_client.map)({
|
|
737
738
|
$metadata: deserializeMetadata(output)
|
|
738
739
|
});
|
|
739
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
740
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
740
741
|
const doc = (0, import_smithy_client.take)(data, {
|
|
741
742
|
audienceModelArn: import_smithy_client.expectString
|
|
742
743
|
});
|
|
@@ -750,7 +751,7 @@ var de_CreateConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (outp
|
|
|
750
751
|
const contents = (0, import_smithy_client.map)({
|
|
751
752
|
$metadata: deserializeMetadata(output)
|
|
752
753
|
});
|
|
753
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
754
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
754
755
|
const doc = (0, import_smithy_client.take)(data, {
|
|
755
756
|
configuredAudienceModelArn: import_smithy_client.expectString
|
|
756
757
|
});
|
|
@@ -764,7 +765,7 @@ var de_CreateTrainingDatasetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
764
765
|
const contents = (0, import_smithy_client.map)({
|
|
765
766
|
$metadata: deserializeMetadata(output)
|
|
766
767
|
});
|
|
767
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
768
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
768
769
|
const doc = (0, import_smithy_client.take)(data, {
|
|
769
770
|
trainingDatasetArn: import_smithy_client.expectString
|
|
770
771
|
});
|
|
@@ -828,7 +829,7 @@ var de_GetAudienceGenerationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
828
829
|
const contents = (0, import_smithy_client.map)({
|
|
829
830
|
$metadata: deserializeMetadata(output)
|
|
830
831
|
});
|
|
831
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
832
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
832
833
|
const doc = (0, import_smithy_client.take)(data, {
|
|
833
834
|
audienceGenerationJobArn: import_smithy_client.expectString,
|
|
834
835
|
collaborationId: import_smithy_client.expectString,
|
|
@@ -855,7 +856,7 @@ var de_GetAudienceModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
855
856
|
const contents = (0, import_smithy_client.map)({
|
|
856
857
|
$metadata: deserializeMetadata(output)
|
|
857
858
|
});
|
|
858
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
859
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
859
860
|
const doc = (0, import_smithy_client.take)(data, {
|
|
860
861
|
audienceModelArn: import_smithy_client.expectString,
|
|
861
862
|
createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -881,7 +882,7 @@ var de_GetConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (output,
|
|
|
881
882
|
const contents = (0, import_smithy_client.map)({
|
|
882
883
|
$metadata: deserializeMetadata(output)
|
|
883
884
|
});
|
|
884
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
885
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
885
886
|
const doc = (0, import_smithy_client.take)(data, {
|
|
886
887
|
audienceModelArn: import_smithy_client.expectString,
|
|
887
888
|
audienceSizeConfig: import_smithy_client._json,
|
|
@@ -907,7 +908,7 @@ var de_GetConfiguredAudienceModelPolicyCommand = /* @__PURE__ */ __name(async (o
|
|
|
907
908
|
const contents = (0, import_smithy_client.map)({
|
|
908
909
|
$metadata: deserializeMetadata(output)
|
|
909
910
|
});
|
|
910
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
911
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
911
912
|
const doc = (0, import_smithy_client.take)(data, {
|
|
912
913
|
configuredAudienceModelArn: import_smithy_client.expectString,
|
|
913
914
|
configuredAudienceModelPolicy: import_smithy_client.expectString,
|
|
@@ -923,7 +924,7 @@ var de_GetTrainingDatasetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
923
924
|
const contents = (0, import_smithy_client.map)({
|
|
924
925
|
$metadata: deserializeMetadata(output)
|
|
925
926
|
});
|
|
926
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
927
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
927
928
|
const doc = (0, import_smithy_client.take)(data, {
|
|
928
929
|
createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
929
930
|
description: import_smithy_client.expectString,
|
|
@@ -945,7 +946,7 @@ var de_ListAudienceExportJobsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
945
946
|
const contents = (0, import_smithy_client.map)({
|
|
946
947
|
$metadata: deserializeMetadata(output)
|
|
947
948
|
});
|
|
948
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
949
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
949
950
|
const doc = (0, import_smithy_client.take)(data, {
|
|
950
951
|
audienceExportJobs: (_) => de_AudienceExportJobList(_, context),
|
|
951
952
|
nextToken: import_smithy_client.expectString
|
|
@@ -960,7 +961,7 @@ var de_ListAudienceGenerationJobsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
960
961
|
const contents = (0, import_smithy_client.map)({
|
|
961
962
|
$metadata: deserializeMetadata(output)
|
|
962
963
|
});
|
|
963
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
964
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
964
965
|
const doc = (0, import_smithy_client.take)(data, {
|
|
965
966
|
audienceGenerationJobs: (_) => de_AudienceGenerationJobList(_, context),
|
|
966
967
|
nextToken: import_smithy_client.expectString
|
|
@@ -975,7 +976,7 @@ var de_ListAudienceModelsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
975
976
|
const contents = (0, import_smithy_client.map)({
|
|
976
977
|
$metadata: deserializeMetadata(output)
|
|
977
978
|
});
|
|
978
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
979
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
979
980
|
const doc = (0, import_smithy_client.take)(data, {
|
|
980
981
|
audienceModels: (_) => de_AudienceModelList(_, context),
|
|
981
982
|
nextToken: import_smithy_client.expectString
|
|
@@ -990,7 +991,7 @@ var de_ListConfiguredAudienceModelsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
990
991
|
const contents = (0, import_smithy_client.map)({
|
|
991
992
|
$metadata: deserializeMetadata(output)
|
|
992
993
|
});
|
|
993
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
994
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
994
995
|
const doc = (0, import_smithy_client.take)(data, {
|
|
995
996
|
configuredAudienceModels: (_) => de_ConfiguredAudienceModelList(_, context),
|
|
996
997
|
nextToken: import_smithy_client.expectString
|
|
@@ -1005,7 +1006,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1005
1006
|
const contents = (0, import_smithy_client.map)({
|
|
1006
1007
|
$metadata: deserializeMetadata(output)
|
|
1007
1008
|
});
|
|
1008
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1009
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1009
1010
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1010
1011
|
tags: import_smithy_client._json
|
|
1011
1012
|
});
|
|
@@ -1019,7 +1020,7 @@ var de_ListTrainingDatasetsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1019
1020
|
const contents = (0, import_smithy_client.map)({
|
|
1020
1021
|
$metadata: deserializeMetadata(output)
|
|
1021
1022
|
});
|
|
1022
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1023
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1023
1024
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1024
1025
|
nextToken: import_smithy_client.expectString,
|
|
1025
1026
|
trainingDatasets: (_) => de_TrainingDatasetList(_, context)
|
|
@@ -1034,7 +1035,7 @@ var de_PutConfiguredAudienceModelPolicyCommand = /* @__PURE__ */ __name(async (o
|
|
|
1034
1035
|
const contents = (0, import_smithy_client.map)({
|
|
1035
1036
|
$metadata: deserializeMetadata(output)
|
|
1036
1037
|
});
|
|
1037
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1038
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1038
1039
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1039
1040
|
configuredAudienceModelPolicy: import_smithy_client.expectString,
|
|
1040
1041
|
policyHash: import_smithy_client.expectString
|
|
@@ -1059,7 +1060,7 @@ var de_StartAudienceGenerationJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1059
1060
|
const contents = (0, import_smithy_client.map)({
|
|
1060
1061
|
$metadata: deserializeMetadata(output)
|
|
1061
1062
|
});
|
|
1062
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1063
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1063
1064
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1064
1065
|
audienceGenerationJobArn: import_smithy_client.expectString
|
|
1065
1066
|
});
|
|
@@ -1093,7 +1094,7 @@ var de_UpdateConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1093
1094
|
const contents = (0, import_smithy_client.map)({
|
|
1094
1095
|
$metadata: deserializeMetadata(output)
|
|
1095
1096
|
});
|
|
1096
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1097
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1097
1098
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1098
1099
|
configuredAudienceModelArn: import_smithy_client.expectString
|
|
1099
1100
|
});
|
|
@@ -1103,9 +1104,9 @@ var de_UpdateConfiguredAudienceModelCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1103
1104
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
1105
|
const parsedOutput = {
|
|
1105
1106
|
...output,
|
|
1106
|
-
body: await
|
|
1107
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1107
1108
|
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1109
1110
|
switch (errorCode) {
|
|
1110
1111
|
case "AccessDeniedException":
|
|
1111
1112
|
case "com.amazonaws.cleanroomsml#AccessDeniedException":
|
|
@@ -1322,53 +1323,12 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1322
1323
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1323
1324
|
cfId: output.headers["x-amz-cf-id"]
|
|
1324
1325
|
}), "deserializeMetadata");
|
|
1325
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1326
1326
|
var _aGJA = "audienceGenerationJobArn";
|
|
1327
1327
|
var _cAMA = "configuredAudienceModelArn";
|
|
1328
1328
|
var _cI = "collaborationId";
|
|
1329
1329
|
var _mR = "maxResults";
|
|
1330
1330
|
var _nT = "nextToken";
|
|
1331
1331
|
var _tK = "tagKeys";
|
|
1332
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1333
|
-
if (encoded.length) {
|
|
1334
|
-
return JSON.parse(encoded);
|
|
1335
|
-
}
|
|
1336
|
-
return {};
|
|
1337
|
-
}), "parseBody");
|
|
1338
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1339
|
-
const value = await parseBody(errorBody, context);
|
|
1340
|
-
value.message = value.message ?? value.Message;
|
|
1341
|
-
return value;
|
|
1342
|
-
}, "parseErrorBody");
|
|
1343
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1344
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1345
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1346
|
-
let cleanValue = rawValue;
|
|
1347
|
-
if (typeof cleanValue === "number") {
|
|
1348
|
-
cleanValue = cleanValue.toString();
|
|
1349
|
-
}
|
|
1350
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1351
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1352
|
-
}
|
|
1353
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1354
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1355
|
-
}
|
|
1356
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1357
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1358
|
-
}
|
|
1359
|
-
return cleanValue;
|
|
1360
|
-
}, "sanitizeErrorCode");
|
|
1361
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1362
|
-
if (headerKey !== void 0) {
|
|
1363
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1364
|
-
}
|
|
1365
|
-
if (data.code !== void 0) {
|
|
1366
|
-
return sanitizeErrorCode(data.code);
|
|
1367
|
-
}
|
|
1368
|
-
if (data["__type"] !== void 0) {
|
|
1369
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1370
|
-
}
|
|
1371
|
-
}, "loadRestJsonErrorCode");
|
|
1372
1332
|
|
|
1373
1333
|
// src/commands/CreateAudienceModelCommand.ts
|
|
1374
1334
|
var _CreateAudienceModelCommand = class _CreateAudienceModelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { CleanRoomsMLServiceException as __BaseException } from "../models/CleanRoomsMLServiceException";
|
|
@@ -939,43 +940,3 @@ const _cI = "collaborationId";
|
|
|
939
940
|
const _mR = "maxResults";
|
|
940
941
|
const _nT = "nextToken";
|
|
941
942
|
const _tK = "tagKeys";
|
|
942
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
943
|
-
if (encoded.length) {
|
|
944
|
-
return JSON.parse(encoded);
|
|
945
|
-
}
|
|
946
|
-
return {};
|
|
947
|
-
});
|
|
948
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
949
|
-
const value = await parseBody(errorBody, context);
|
|
950
|
-
value.message = value.message ?? value.Message;
|
|
951
|
-
return value;
|
|
952
|
-
};
|
|
953
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
954
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
955
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
956
|
-
let cleanValue = rawValue;
|
|
957
|
-
if (typeof cleanValue === "number") {
|
|
958
|
-
cleanValue = cleanValue.toString();
|
|
959
|
-
}
|
|
960
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
961
|
-
cleanValue = cleanValue.split(",")[0];
|
|
962
|
-
}
|
|
963
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
964
|
-
cleanValue = cleanValue.split(":")[0];
|
|
965
|
-
}
|
|
966
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
967
|
-
cleanValue = cleanValue.split("#")[1];
|
|
968
|
-
}
|
|
969
|
-
return cleanValue;
|
|
970
|
-
};
|
|
971
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
972
|
-
if (headerKey !== undefined) {
|
|
973
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
974
|
-
}
|
|
975
|
-
if (data.code !== undefined) {
|
|
976
|
-
return sanitizeErrorCode(data.code);
|
|
977
|
-
}
|
|
978
|
-
if (data["__type"] !== undefined) {
|
|
979
|
-
return sanitizeErrorCode(data["__type"]);
|
|
980
|
-
}
|
|
981
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cleanroomsml",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cleanroomsml Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
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-cleanroomsml",
|
|
@@ -20,40 +20,40 @@
|
|
|
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.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
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",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
package/dist-cjs/CleanRoomsML.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|