@aws-sdk/client-timestream-write 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 +30 -70
- package/dist-es/protocols/Aws_json1_0.js +1 -40
- package/package.json +18 -18
- package/dist-cjs/TimestreamWrite.js +0 -1
- package/dist-cjs/TimestreamWriteClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateBatchLoadTaskCommand.js +0 -1
- package/dist-cjs/commands/CreateDatabaseCommand.js +0 -1
- package/dist-cjs/commands/CreateTableCommand.js +0 -1
- package/dist-cjs/commands/DeleteDatabaseCommand.js +0 -1
- package/dist-cjs/commands/DeleteTableCommand.js +0 -1
- package/dist-cjs/commands/DescribeBatchLoadTaskCommand.js +0 -1
- package/dist-cjs/commands/DescribeDatabaseCommand.js +0 -1
- package/dist-cjs/commands/DescribeEndpointsCommand.js +0 -1
- package/dist-cjs/commands/DescribeTableCommand.js +0 -1
- package/dist-cjs/commands/ListBatchLoadTasksCommand.js +0 -1
- package/dist-cjs/commands/ListDatabasesCommand.js +0 -1
- package/dist-cjs/commands/ListTablesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ResumeBatchLoadTaskCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateDatabaseCommand.js +0 -1
- package/dist-cjs/commands/UpdateTableCommand.js +0 -1
- package/dist-cjs/commands/WriteRecordsCommand.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/TimestreamWriteServiceException.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/ListBatchLoadTasksPaginator.js +0 -1
- package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -1
- package/dist-cjs/pagination/ListTablesPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -77,7 +77,7 @@ var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
|
77
77
|
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
78
78
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
79
79
|
var import_config_resolver = require("@smithy/config-resolver");
|
|
80
|
-
var
|
|
80
|
+
var import_core2 = require("@smithy/core");
|
|
81
81
|
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
82
82
|
|
|
83
83
|
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
@@ -107,6 +107,7 @@ var commonParams = {
|
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
// src/protocols/Aws_json1_0.ts
|
|
110
|
+
var import_core = require("@aws-sdk/core");
|
|
110
111
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
111
112
|
|
|
112
113
|
var import_uuid = require("uuid");
|
|
@@ -468,7 +469,7 @@ var de_CreateBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
468
469
|
if (output.statusCode >= 300) {
|
|
469
470
|
return de_CommandError(output, context);
|
|
470
471
|
}
|
|
471
|
-
const data = await
|
|
472
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
472
473
|
let contents = {};
|
|
473
474
|
contents = (0, import_smithy_client._json)(data);
|
|
474
475
|
const response = {
|
|
@@ -481,7 +482,7 @@ var de_CreateDatabaseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
481
482
|
if (output.statusCode >= 300) {
|
|
482
483
|
return de_CommandError(output, context);
|
|
483
484
|
}
|
|
484
|
-
const data = await
|
|
485
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
485
486
|
let contents = {};
|
|
486
487
|
contents = de_CreateDatabaseResponse(data, context);
|
|
487
488
|
const response = {
|
|
@@ -494,7 +495,7 @@ var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
494
495
|
if (output.statusCode >= 300) {
|
|
495
496
|
return de_CommandError(output, context);
|
|
496
497
|
}
|
|
497
|
-
const data = await
|
|
498
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
498
499
|
let contents = {};
|
|
499
500
|
contents = de_CreateTableResponse(data, context);
|
|
500
501
|
const response = {
|
|
@@ -527,7 +528,7 @@ var de_DescribeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
527
528
|
if (output.statusCode >= 300) {
|
|
528
529
|
return de_CommandError(output, context);
|
|
529
530
|
}
|
|
530
|
-
const data = await
|
|
531
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
531
532
|
let contents = {};
|
|
532
533
|
contents = de_DescribeBatchLoadTaskResponse(data, context);
|
|
533
534
|
const response = {
|
|
@@ -540,7 +541,7 @@ var de_DescribeDatabaseCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
540
541
|
if (output.statusCode >= 300) {
|
|
541
542
|
return de_CommandError(output, context);
|
|
542
543
|
}
|
|
543
|
-
const data = await
|
|
544
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
544
545
|
let contents = {};
|
|
545
546
|
contents = de_DescribeDatabaseResponse(data, context);
|
|
546
547
|
const response = {
|
|
@@ -553,7 +554,7 @@ var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
553
554
|
if (output.statusCode >= 300) {
|
|
554
555
|
return de_CommandError(output, context);
|
|
555
556
|
}
|
|
556
|
-
const data = await
|
|
557
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
557
558
|
let contents = {};
|
|
558
559
|
contents = (0, import_smithy_client._json)(data);
|
|
559
560
|
const response = {
|
|
@@ -566,7 +567,7 @@ var de_DescribeTableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
566
567
|
if (output.statusCode >= 300) {
|
|
567
568
|
return de_CommandError(output, context);
|
|
568
569
|
}
|
|
569
|
-
const data = await
|
|
570
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
570
571
|
let contents = {};
|
|
571
572
|
contents = de_DescribeTableResponse(data, context);
|
|
572
573
|
const response = {
|
|
@@ -579,7 +580,7 @@ var de_ListBatchLoadTasksCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
579
580
|
if (output.statusCode >= 300) {
|
|
580
581
|
return de_CommandError(output, context);
|
|
581
582
|
}
|
|
582
|
-
const data = await
|
|
583
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
583
584
|
let contents = {};
|
|
584
585
|
contents = de_ListBatchLoadTasksResponse(data, context);
|
|
585
586
|
const response = {
|
|
@@ -592,7 +593,7 @@ var de_ListDatabasesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
592
593
|
if (output.statusCode >= 300) {
|
|
593
594
|
return de_CommandError(output, context);
|
|
594
595
|
}
|
|
595
|
-
const data = await
|
|
596
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
596
597
|
let contents = {};
|
|
597
598
|
contents = de_ListDatabasesResponse(data, context);
|
|
598
599
|
const response = {
|
|
@@ -605,7 +606,7 @@ var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
605
606
|
if (output.statusCode >= 300) {
|
|
606
607
|
return de_CommandError(output, context);
|
|
607
608
|
}
|
|
608
|
-
const data = await
|
|
609
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
609
610
|
let contents = {};
|
|
610
611
|
contents = de_ListTablesResponse(data, context);
|
|
611
612
|
const response = {
|
|
@@ -618,7 +619,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
618
619
|
if (output.statusCode >= 300) {
|
|
619
620
|
return de_CommandError(output, context);
|
|
620
621
|
}
|
|
621
|
-
const data = await
|
|
622
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
622
623
|
let contents = {};
|
|
623
624
|
contents = (0, import_smithy_client._json)(data);
|
|
624
625
|
const response = {
|
|
@@ -631,7 +632,7 @@ var de_ResumeBatchLoadTaskCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
631
632
|
if (output.statusCode >= 300) {
|
|
632
633
|
return de_CommandError(output, context);
|
|
633
634
|
}
|
|
634
|
-
const data = await
|
|
635
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
635
636
|
let contents = {};
|
|
636
637
|
contents = (0, import_smithy_client._json)(data);
|
|
637
638
|
const response = {
|
|
@@ -644,7 +645,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
644
645
|
if (output.statusCode >= 300) {
|
|
645
646
|
return de_CommandError(output, context);
|
|
646
647
|
}
|
|
647
|
-
const data = await
|
|
648
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
648
649
|
let contents = {};
|
|
649
650
|
contents = (0, import_smithy_client._json)(data);
|
|
650
651
|
const response = {
|
|
@@ -657,7 +658,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
657
658
|
if (output.statusCode >= 300) {
|
|
658
659
|
return de_CommandError(output, context);
|
|
659
660
|
}
|
|
660
|
-
const data = await
|
|
661
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
661
662
|
let contents = {};
|
|
662
663
|
contents = (0, import_smithy_client._json)(data);
|
|
663
664
|
const response = {
|
|
@@ -670,7 +671,7 @@ var de_UpdateDatabaseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
670
671
|
if (output.statusCode >= 300) {
|
|
671
672
|
return de_CommandError(output, context);
|
|
672
673
|
}
|
|
673
|
-
const data = await
|
|
674
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
674
675
|
let contents = {};
|
|
675
676
|
contents = de_UpdateDatabaseResponse(data, context);
|
|
676
677
|
const response = {
|
|
@@ -683,7 +684,7 @@ var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
683
684
|
if (output.statusCode >= 300) {
|
|
684
685
|
return de_CommandError(output, context);
|
|
685
686
|
}
|
|
686
|
-
const data = await
|
|
687
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
687
688
|
let contents = {};
|
|
688
689
|
contents = de_UpdateTableResponse(data, context);
|
|
689
690
|
const response = {
|
|
@@ -696,7 +697,7 @@ var de_WriteRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
696
697
|
if (output.statusCode >= 300) {
|
|
697
698
|
return de_CommandError(output, context);
|
|
698
699
|
}
|
|
699
|
-
const data = await
|
|
700
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
700
701
|
let contents = {};
|
|
701
702
|
contents = (0, import_smithy_client._json)(data);
|
|
702
703
|
const response = {
|
|
@@ -708,9 +709,9 @@ var de_WriteRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
708
709
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
709
710
|
const parsedOutput = {
|
|
710
711
|
...output,
|
|
711
|
-
body: await
|
|
712
|
+
body: await (0, import_core.parseJsonErrorBody)(output.body, context)
|
|
712
713
|
};
|
|
713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
+
const errorCode = (0, import_core.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
714
715
|
switch (errorCode) {
|
|
715
716
|
case "AccessDeniedException":
|
|
716
717
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
@@ -968,7 +969,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
968
969
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
969
970
|
cfId: output.headers["x-amz-cf-id"]
|
|
970
971
|
}), "deserializeMetadata");
|
|
971
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
972
972
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(TimestreamWriteServiceException);
|
|
973
973
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
974
974
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -995,46 +995,6 @@ function sharedHeaders(operation) {
|
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
997
|
__name(sharedHeaders, "sharedHeaders");
|
|
998
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
999
|
-
if (encoded.length) {
|
|
1000
|
-
return JSON.parse(encoded);
|
|
1001
|
-
}
|
|
1002
|
-
return {};
|
|
1003
|
-
}), "parseBody");
|
|
1004
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1005
|
-
const value = await parseBody(errorBody, context);
|
|
1006
|
-
value.message = value.message ?? value.Message;
|
|
1007
|
-
return value;
|
|
1008
|
-
}, "parseErrorBody");
|
|
1009
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1010
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1011
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1012
|
-
let cleanValue = rawValue;
|
|
1013
|
-
if (typeof cleanValue === "number") {
|
|
1014
|
-
cleanValue = cleanValue.toString();
|
|
1015
|
-
}
|
|
1016
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1017
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1018
|
-
}
|
|
1019
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1020
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1021
|
-
}
|
|
1022
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1023
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1024
|
-
}
|
|
1025
|
-
return cleanValue;
|
|
1026
|
-
}, "sanitizeErrorCode");
|
|
1027
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1028
|
-
if (headerKey !== void 0) {
|
|
1029
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1030
|
-
}
|
|
1031
|
-
if (data.code !== void 0) {
|
|
1032
|
-
return sanitizeErrorCode(data.code);
|
|
1033
|
-
}
|
|
1034
|
-
if (data["__type"] !== void 0) {
|
|
1035
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1036
|
-
}
|
|
1037
|
-
}, "loadRestJsonErrorCode");
|
|
1038
998
|
|
|
1039
999
|
// src/commands/DescribeEndpointsCommand.ts
|
|
1040
1000
|
var _DescribeEndpointsCommand = class _DescribeEndpointsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1139,12 +1099,12 @@ var _TimestreamWriteClient = class _TimestreamWriteClient extends import_smithy_
|
|
|
1139
1099
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
1140
1100
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
1141
1101
|
this.middlewareStack.use(
|
|
1142
|
-
(0,
|
|
1102
|
+
(0, import_core2.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
1143
1103
|
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
1144
1104
|
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
|
1145
1105
|
})
|
|
1146
1106
|
);
|
|
1147
|
-
this.middlewareStack.use((0,
|
|
1107
|
+
this.middlewareStack.use((0, import_core2.getHttpSigningPlugin)(this.config));
|
|
1148
1108
|
}
|
|
1149
1109
|
/**
|
|
1150
1110
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -1158,7 +1118,7 @@ var _TimestreamWriteClient = class _TimestreamWriteClient extends import_smithy_
|
|
|
1158
1118
|
return import_httpAuthSchemeProvider.defaultTimestreamWriteHttpAuthSchemeParametersProvider;
|
|
1159
1119
|
}
|
|
1160
1120
|
getIdentityProviderConfigProvider() {
|
|
1161
|
-
return async (config) => new
|
|
1121
|
+
return async (config) => new import_core2.DefaultIdentityProviderConfig({
|
|
1162
1122
|
"aws.auth#sigv4": config.credentials
|
|
1163
1123
|
});
|
|
1164
1124
|
}
|
|
@@ -1540,16 +1500,16 @@ var TimestreamWrite = _TimestreamWrite;
|
|
|
1540
1500
|
(0, import_smithy_client.createAggregatedClient)(commands, TimestreamWrite);
|
|
1541
1501
|
|
|
1542
1502
|
// src/pagination/ListBatchLoadTasksPaginator.ts
|
|
1543
|
-
|
|
1544
|
-
var paginateListBatchLoadTasks = (0,
|
|
1503
|
+
var import_core3 = require("@smithy/core");
|
|
1504
|
+
var paginateListBatchLoadTasks = (0, import_core3.createPaginator)(TimestreamWriteClient, ListBatchLoadTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1545
1505
|
|
|
1546
1506
|
// src/pagination/ListDatabasesPaginator.ts
|
|
1547
|
-
|
|
1548
|
-
var paginateListDatabases = (0,
|
|
1507
|
+
var import_core4 = require("@smithy/core");
|
|
1508
|
+
var paginateListDatabases = (0, import_core4.createPaginator)(TimestreamWriteClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1549
1509
|
|
|
1550
1510
|
// src/pagination/ListTablesPaginator.ts
|
|
1551
|
-
|
|
1552
|
-
var paginateListTables = (0,
|
|
1511
|
+
var import_core5 = require("@smithy/core");
|
|
1512
|
+
var paginateListTables = (0, import_core5.createPaginator)(TimestreamWriteClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1553
1513
|
|
|
1554
1514
|
// src/index.ts
|
|
1555
1515
|
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -653,43 +654,3 @@ function sharedHeaders(operation) {
|
|
|
653
654
|
"x-amz-target": `Timestream_20181101.${operation}`,
|
|
654
655
|
};
|
|
655
656
|
}
|
|
656
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
657
|
-
if (encoded.length) {
|
|
658
|
-
return JSON.parse(encoded);
|
|
659
|
-
}
|
|
660
|
-
return {};
|
|
661
|
-
});
|
|
662
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
663
|
-
const value = await parseBody(errorBody, context);
|
|
664
|
-
value.message = value.message ?? value.Message;
|
|
665
|
-
return value;
|
|
666
|
-
};
|
|
667
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
668
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
669
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
670
|
-
let cleanValue = rawValue;
|
|
671
|
-
if (typeof cleanValue === "number") {
|
|
672
|
-
cleanValue = cleanValue.toString();
|
|
673
|
-
}
|
|
674
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
675
|
-
cleanValue = cleanValue.split(",")[0];
|
|
676
|
-
}
|
|
677
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
678
|
-
cleanValue = cleanValue.split(":")[0];
|
|
679
|
-
}
|
|
680
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
681
|
-
cleanValue = cleanValue.split("#")[1];
|
|
682
|
-
}
|
|
683
|
-
return cleanValue;
|
|
684
|
-
};
|
|
685
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
686
|
-
if (headerKey !== undefined) {
|
|
687
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
688
|
-
}
|
|
689
|
-
if (data.code !== undefined) {
|
|
690
|
-
return sanitizeErrorCode(data.code);
|
|
691
|
-
}
|
|
692
|
-
if (data["__type"] !== undefined) {
|
|
693
|
-
return sanitizeErrorCode(data["__type"]);
|
|
694
|
-
}
|
|
695
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-timestream-write",
|
|
3
3
|
"description": "AWS SDK for JavaScript Timestream Write 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-timestream-write",
|
|
@@ -20,41 +20,41 @@
|
|
|
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.
|
|
26
|
-
"@aws-sdk/middleware-endpoint-discovery": "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
|
+
"@aws-sdk/middleware-endpoint-discovery": "3.525.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
32
32
|
"@aws-sdk/types": "3.523.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.1.
|
|
37
|
-
"@smithy/core": "^1.3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
37
|
+
"@smithy/core": "^1.3.5",
|
|
38
38
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
39
39
|
"@smithy/hash-node": "^2.1.3",
|
|
40
40
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
41
41
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
43
|
-
"@smithy/middleware-retry": "^2.1.
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
44
44
|
"@smithy/middleware-serde": "^2.1.3",
|
|
45
45
|
"@smithy/middleware-stack": "^2.1.3",
|
|
46
|
-
"@smithy/node-config-provider": "^2.2.
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
47
47
|
"@smithy/node-http-handler": "^2.4.1",
|
|
48
48
|
"@smithy/protocol-http": "^3.2.1",
|
|
49
|
-
"@smithy/smithy-client": "^2.4.
|
|
49
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
50
50
|
"@smithy/types": "^2.10.1",
|
|
51
51
|
"@smithy/url-parser": "^2.1.3",
|
|
52
52
|
"@smithy/util-base64": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
54
54
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
57
|
-
"@smithy/util-endpoints": "^1.1.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
58
58
|
"@smithy/util-middleware": "^2.1.3",
|
|
59
59
|
"@smithy/util-retry": "^2.1.3",
|
|
60
60
|
"@smithy/util-utf8": "^2.1.1",
|
|
@@ -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");
|