@aws-sdk/client-timestream-write 3.309.0 → 3.312.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/protocols/Aws_json1_0.js +25 -76
- package/dist-es/protocols/Aws_json1_0.js +25 -76
- package/package.json +36 -36
|
@@ -7,190 +7,133 @@ const uuid_1 = require("uuid");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const TimestreamWriteServiceException_1 = require("../models/TimestreamWriteServiceException");
|
|
9
9
|
const se_CreateBatchLoadTaskCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.0",
|
|
12
|
-
"x-amz-target": "Timestream_20181101.CreateBatchLoadTask",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CreateBatchLoadTask");
|
|
14
11
|
let body;
|
|
15
12
|
body = JSON.stringify(se_CreateBatchLoadTaskRequest(input, context));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CreateBatchLoadTaskCommand = se_CreateBatchLoadTaskCommand;
|
|
19
16
|
const se_CreateDatabaseCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.0",
|
|
22
|
-
"x-amz-target": "Timestream_20181101.CreateDatabase",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateDatabase");
|
|
24
18
|
let body;
|
|
25
19
|
body = JSON.stringify(se_CreateDatabaseRequest(input, context));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateDatabaseCommand = se_CreateDatabaseCommand;
|
|
29
23
|
const se_CreateTableCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.0",
|
|
32
|
-
"x-amz-target": "Timestream_20181101.CreateTable",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateTable");
|
|
34
25
|
let body;
|
|
35
26
|
body = JSON.stringify(se_CreateTableRequest(input, context));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateTableCommand = se_CreateTableCommand;
|
|
39
30
|
const se_DeleteDatabaseCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.0",
|
|
42
|
-
"x-amz-target": "Timestream_20181101.DeleteDatabase",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteDatabase");
|
|
44
32
|
let body;
|
|
45
33
|
body = JSON.stringify(se_DeleteDatabaseRequest(input, context));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_DeleteDatabaseCommand = se_DeleteDatabaseCommand;
|
|
49
37
|
const se_DeleteTableCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.0",
|
|
52
|
-
"x-amz-target": "Timestream_20181101.DeleteTable",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DeleteTable");
|
|
54
39
|
let body;
|
|
55
40
|
body = JSON.stringify(se_DeleteTableRequest(input, context));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DeleteTableCommand = se_DeleteTableCommand;
|
|
59
44
|
const se_DescribeBatchLoadTaskCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.0",
|
|
62
|
-
"x-amz-target": "Timestream_20181101.DescribeBatchLoadTask",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DescribeBatchLoadTask");
|
|
64
46
|
let body;
|
|
65
47
|
body = JSON.stringify(se_DescribeBatchLoadTaskRequest(input, context));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DescribeBatchLoadTaskCommand = se_DescribeBatchLoadTaskCommand;
|
|
69
51
|
const se_DescribeDatabaseCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.0",
|
|
72
|
-
"x-amz-target": "Timestream_20181101.DescribeDatabase",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DescribeDatabase");
|
|
74
53
|
let body;
|
|
75
54
|
body = JSON.stringify(se_DescribeDatabaseRequest(input, context));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DescribeDatabaseCommand = se_DescribeDatabaseCommand;
|
|
79
58
|
const se_DescribeEndpointsCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.0",
|
|
82
|
-
"x-amz-target": "Timestream_20181101.DescribeEndpoints",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DescribeEndpoints");
|
|
84
60
|
let body;
|
|
85
61
|
body = JSON.stringify(se_DescribeEndpointsRequest(input, context));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DescribeEndpointsCommand = se_DescribeEndpointsCommand;
|
|
89
65
|
const se_DescribeTableCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.0",
|
|
92
|
-
"x-amz-target": "Timestream_20181101.DescribeTable",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeTable");
|
|
94
67
|
let body;
|
|
95
68
|
body = JSON.stringify(se_DescribeTableRequest(input, context));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DescribeTableCommand = se_DescribeTableCommand;
|
|
99
72
|
const se_ListBatchLoadTasksCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.0",
|
|
102
|
-
"x-amz-target": "Timestream_20181101.ListBatchLoadTasks",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("ListBatchLoadTasks");
|
|
104
74
|
let body;
|
|
105
75
|
body = JSON.stringify(se_ListBatchLoadTasksRequest(input, context));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_ListBatchLoadTasksCommand = se_ListBatchLoadTasksCommand;
|
|
109
79
|
const se_ListDatabasesCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.0",
|
|
112
|
-
"x-amz-target": "Timestream_20181101.ListDatabases",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("ListDatabases");
|
|
114
81
|
let body;
|
|
115
82
|
body = JSON.stringify(se_ListDatabasesRequest(input, context));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_ListDatabasesCommand = se_ListDatabasesCommand;
|
|
119
86
|
const se_ListTablesCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.0",
|
|
122
|
-
"x-amz-target": "Timestream_20181101.ListTables",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("ListTables");
|
|
124
88
|
let body;
|
|
125
89
|
body = JSON.stringify(se_ListTablesRequest(input, context));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_ListTablesCommand = se_ListTablesCommand;
|
|
129
93
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.0",
|
|
132
|
-
"x-amz-target": "Timestream_20181101.ListTagsForResource",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
134
95
|
let body;
|
|
135
96
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
139
100
|
const se_ResumeBatchLoadTaskCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.0",
|
|
142
|
-
"x-amz-target": "Timestream_20181101.ResumeBatchLoadTask",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("ResumeBatchLoadTask");
|
|
144
102
|
let body;
|
|
145
103
|
body = JSON.stringify(se_ResumeBatchLoadTaskRequest(input, context));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_ResumeBatchLoadTaskCommand = se_ResumeBatchLoadTaskCommand;
|
|
149
107
|
const se_TagResourceCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.0",
|
|
152
|
-
"x-amz-target": "Timestream_20181101.TagResource",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("TagResource");
|
|
154
109
|
let body;
|
|
155
110
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
159
114
|
const se_UntagResourceCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.0",
|
|
162
|
-
"x-amz-target": "Timestream_20181101.UntagResource",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("UntagResource");
|
|
164
116
|
let body;
|
|
165
117
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
169
121
|
const se_UpdateDatabaseCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.0",
|
|
172
|
-
"x-amz-target": "Timestream_20181101.UpdateDatabase",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("UpdateDatabase");
|
|
174
123
|
let body;
|
|
175
124
|
body = JSON.stringify(se_UpdateDatabaseRequest(input, context));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_UpdateDatabaseCommand = se_UpdateDatabaseCommand;
|
|
179
128
|
const se_UpdateTableCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.0",
|
|
182
|
-
"x-amz-target": "Timestream_20181101.UpdateTable",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("UpdateTable");
|
|
184
130
|
let body;
|
|
185
131
|
body = JSON.stringify(se_UpdateTableRequest(input, context));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_UpdateTableCommand = se_UpdateTableCommand;
|
|
189
135
|
const se_WriteRecordsCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.0",
|
|
192
|
-
"x-amz-target": "Timestream_20181101.WriteRecords",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("WriteRecords");
|
|
194
137
|
let body;
|
|
195
138
|
body = JSON.stringify(se_WriteRecordsRequest(input, context));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2046,6 +1989,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2046
1989
|
}
|
|
2047
1990
|
return new protocol_http_1.HttpRequest(contents);
|
|
2048
1991
|
};
|
|
1992
|
+
function sharedHeaders(operation) {
|
|
1993
|
+
return {
|
|
1994
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1995
|
+
"x-amz-target": `Timestream_20181101.${operation}`,
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
2049
1998
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2050
1999
|
if (encoded.length) {
|
|
2051
2000
|
return JSON.parse(encoded);
|
|
@@ -4,172 +4,115 @@ import { v4 as generateIdempotencyToken } from "uuid";
|
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, RejectedRecordsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { TimestreamWriteServiceException as __BaseException } from "../models/TimestreamWriteServiceException";
|
|
6
6
|
export const se_CreateBatchLoadTaskCommand = async (input, context) => {
|
|
7
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-amz-json-1.0",
|
|
9
|
-
"x-amz-target": "Timestream_20181101.CreateBatchLoadTask",
|
|
10
|
-
};
|
|
7
|
+
const headers = sharedHeaders("CreateBatchLoadTask");
|
|
11
8
|
let body;
|
|
12
9
|
body = JSON.stringify(se_CreateBatchLoadTaskRequest(input, context));
|
|
13
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
11
|
};
|
|
15
12
|
export const se_CreateDatabaseCommand = async (input, context) => {
|
|
16
|
-
const headers =
|
|
17
|
-
"content-type": "application/x-amz-json-1.0",
|
|
18
|
-
"x-amz-target": "Timestream_20181101.CreateDatabase",
|
|
19
|
-
};
|
|
13
|
+
const headers = sharedHeaders("CreateDatabase");
|
|
20
14
|
let body;
|
|
21
15
|
body = JSON.stringify(se_CreateDatabaseRequest(input, context));
|
|
22
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
17
|
};
|
|
24
18
|
export const se_CreateTableCommand = async (input, context) => {
|
|
25
|
-
const headers =
|
|
26
|
-
"content-type": "application/x-amz-json-1.0",
|
|
27
|
-
"x-amz-target": "Timestream_20181101.CreateTable",
|
|
28
|
-
};
|
|
19
|
+
const headers = sharedHeaders("CreateTable");
|
|
29
20
|
let body;
|
|
30
21
|
body = JSON.stringify(se_CreateTableRequest(input, context));
|
|
31
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
23
|
};
|
|
33
24
|
export const se_DeleteDatabaseCommand = async (input, context) => {
|
|
34
|
-
const headers =
|
|
35
|
-
"content-type": "application/x-amz-json-1.0",
|
|
36
|
-
"x-amz-target": "Timestream_20181101.DeleteDatabase",
|
|
37
|
-
};
|
|
25
|
+
const headers = sharedHeaders("DeleteDatabase");
|
|
38
26
|
let body;
|
|
39
27
|
body = JSON.stringify(se_DeleteDatabaseRequest(input, context));
|
|
40
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
29
|
};
|
|
42
30
|
export const se_DeleteTableCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-amz-json-1.0",
|
|
45
|
-
"x-amz-target": "Timestream_20181101.DeleteTable",
|
|
46
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteTable");
|
|
47
32
|
let body;
|
|
48
33
|
body = JSON.stringify(se_DeleteTableRequest(input, context));
|
|
49
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
35
|
};
|
|
51
36
|
export const se_DescribeBatchLoadTaskCommand = async (input, context) => {
|
|
52
|
-
const headers =
|
|
53
|
-
"content-type": "application/x-amz-json-1.0",
|
|
54
|
-
"x-amz-target": "Timestream_20181101.DescribeBatchLoadTask",
|
|
55
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DescribeBatchLoadTask");
|
|
56
38
|
let body;
|
|
57
39
|
body = JSON.stringify(se_DescribeBatchLoadTaskRequest(input, context));
|
|
58
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
41
|
};
|
|
60
42
|
export const se_DescribeDatabaseCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.0",
|
|
63
|
-
"x-amz-target": "Timestream_20181101.DescribeDatabase",
|
|
64
|
-
};
|
|
43
|
+
const headers = sharedHeaders("DescribeDatabase");
|
|
65
44
|
let body;
|
|
66
45
|
body = JSON.stringify(se_DescribeDatabaseRequest(input, context));
|
|
67
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
47
|
};
|
|
69
48
|
export const se_DescribeEndpointsCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.0",
|
|
72
|
-
"x-amz-target": "Timestream_20181101.DescribeEndpoints",
|
|
73
|
-
};
|
|
49
|
+
const headers = sharedHeaders("DescribeEndpoints");
|
|
74
50
|
let body;
|
|
75
51
|
body = JSON.stringify(se_DescribeEndpointsRequest(input, context));
|
|
76
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
53
|
};
|
|
78
54
|
export const se_DescribeTableCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.0",
|
|
81
|
-
"x-amz-target": "Timestream_20181101.DescribeTable",
|
|
82
|
-
};
|
|
55
|
+
const headers = sharedHeaders("DescribeTable");
|
|
83
56
|
let body;
|
|
84
57
|
body = JSON.stringify(se_DescribeTableRequest(input, context));
|
|
85
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
59
|
};
|
|
87
60
|
export const se_ListBatchLoadTasksCommand = async (input, context) => {
|
|
88
|
-
const headers =
|
|
89
|
-
"content-type": "application/x-amz-json-1.0",
|
|
90
|
-
"x-amz-target": "Timestream_20181101.ListBatchLoadTasks",
|
|
91
|
-
};
|
|
61
|
+
const headers = sharedHeaders("ListBatchLoadTasks");
|
|
92
62
|
let body;
|
|
93
63
|
body = JSON.stringify(se_ListBatchLoadTasksRequest(input, context));
|
|
94
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
65
|
};
|
|
96
66
|
export const se_ListDatabasesCommand = async (input, context) => {
|
|
97
|
-
const headers =
|
|
98
|
-
"content-type": "application/x-amz-json-1.0",
|
|
99
|
-
"x-amz-target": "Timestream_20181101.ListDatabases",
|
|
100
|
-
};
|
|
67
|
+
const headers = sharedHeaders("ListDatabases");
|
|
101
68
|
let body;
|
|
102
69
|
body = JSON.stringify(se_ListDatabasesRequest(input, context));
|
|
103
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
71
|
};
|
|
105
72
|
export const se_ListTablesCommand = async (input, context) => {
|
|
106
|
-
const headers =
|
|
107
|
-
"content-type": "application/x-amz-json-1.0",
|
|
108
|
-
"x-amz-target": "Timestream_20181101.ListTables",
|
|
109
|
-
};
|
|
73
|
+
const headers = sharedHeaders("ListTables");
|
|
110
74
|
let body;
|
|
111
75
|
body = JSON.stringify(se_ListTablesRequest(input, context));
|
|
112
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
77
|
};
|
|
114
78
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-amz-json-1.0",
|
|
117
|
-
"x-amz-target": "Timestream_20181101.ListTagsForResource",
|
|
118
|
-
};
|
|
79
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
119
80
|
let body;
|
|
120
81
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
121
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
83
|
};
|
|
123
84
|
export const se_ResumeBatchLoadTaskCommand = async (input, context) => {
|
|
124
|
-
const headers =
|
|
125
|
-
"content-type": "application/x-amz-json-1.0",
|
|
126
|
-
"x-amz-target": "Timestream_20181101.ResumeBatchLoadTask",
|
|
127
|
-
};
|
|
85
|
+
const headers = sharedHeaders("ResumeBatchLoadTask");
|
|
128
86
|
let body;
|
|
129
87
|
body = JSON.stringify(se_ResumeBatchLoadTaskRequest(input, context));
|
|
130
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
89
|
};
|
|
132
90
|
export const se_TagResourceCommand = async (input, context) => {
|
|
133
|
-
const headers =
|
|
134
|
-
"content-type": "application/x-amz-json-1.0",
|
|
135
|
-
"x-amz-target": "Timestream_20181101.TagResource",
|
|
136
|
-
};
|
|
91
|
+
const headers = sharedHeaders("TagResource");
|
|
137
92
|
let body;
|
|
138
93
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
139
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
95
|
};
|
|
141
96
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
142
|
-
const headers =
|
|
143
|
-
"content-type": "application/x-amz-json-1.0",
|
|
144
|
-
"x-amz-target": "Timestream_20181101.UntagResource",
|
|
145
|
-
};
|
|
97
|
+
const headers = sharedHeaders("UntagResource");
|
|
146
98
|
let body;
|
|
147
99
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
148
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
101
|
};
|
|
150
102
|
export const se_UpdateDatabaseCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.0",
|
|
153
|
-
"x-amz-target": "Timestream_20181101.UpdateDatabase",
|
|
154
|
-
};
|
|
103
|
+
const headers = sharedHeaders("UpdateDatabase");
|
|
155
104
|
let body;
|
|
156
105
|
body = JSON.stringify(se_UpdateDatabaseRequest(input, context));
|
|
157
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
107
|
};
|
|
159
108
|
export const se_UpdateTableCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.0",
|
|
162
|
-
"x-amz-target": "Timestream_20181101.UpdateTable",
|
|
163
|
-
};
|
|
109
|
+
const headers = sharedHeaders("UpdateTable");
|
|
164
110
|
let body;
|
|
165
111
|
body = JSON.stringify(se_UpdateTableRequest(input, context));
|
|
166
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
113
|
};
|
|
168
114
|
export const se_WriteRecordsCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.0",
|
|
171
|
-
"x-amz-target": "Timestream_20181101.WriteRecords",
|
|
172
|
-
};
|
|
115
|
+
const headers = sharedHeaders("WriteRecords");
|
|
173
116
|
let body;
|
|
174
117
|
body = JSON.stringify(se_WriteRecordsRequest(input, context));
|
|
175
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2005,6 +1948,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2005
1948
|
}
|
|
2006
1949
|
return new __HttpRequest(contents);
|
|
2007
1950
|
};
|
|
1951
|
+
function sharedHeaders(operation) {
|
|
1952
|
+
return {
|
|
1953
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1954
|
+
"x-amz-target": `Timestream_20181101.${operation}`,
|
|
1955
|
+
};
|
|
1956
|
+
}
|
|
2008
1957
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2009
1958
|
if (encoded.length) {
|
|
2010
1959
|
return JSON.parse(encoded);
|
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.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,44 +21,44 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-endpoint-discovery": "3.
|
|
33
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
34
|
-
"@aws-sdk/middleware-logger": "3.
|
|
35
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
36
|
-
"@aws-sdk/middleware-retry": "3.
|
|
37
|
-
"@aws-sdk/middleware-serde": "3.
|
|
38
|
-
"@aws-sdk/middleware-signing": "3.
|
|
39
|
-
"@aws-sdk/middleware-stack": "3.
|
|
40
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
41
|
-
"@aws-sdk/node-config-provider": "3.
|
|
42
|
-
"@aws-sdk/node-http-handler": "3.
|
|
43
|
-
"@aws-sdk/protocol-http": "3.
|
|
44
|
-
"@aws-sdk/smithy-client": "3.
|
|
45
|
-
"@aws-sdk/types": "3.
|
|
46
|
-
"@aws-sdk/url-parser": "3.
|
|
47
|
-
"@aws-sdk/util-base64": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
49
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
52
|
-
"@aws-sdk/util-endpoints": "3.
|
|
53
|
-
"@aws-sdk/util-retry": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.310.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.310.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.310.0",
|
|
32
|
+
"@aws-sdk/middleware-endpoint-discovery": "3.310.0",
|
|
33
|
+
"@aws-sdk/middleware-host-header": "3.310.0",
|
|
34
|
+
"@aws-sdk/middleware-logger": "3.310.0",
|
|
35
|
+
"@aws-sdk/middleware-recursion-detection": "3.310.0",
|
|
36
|
+
"@aws-sdk/middleware-retry": "3.310.0",
|
|
37
|
+
"@aws-sdk/middleware-serde": "3.310.0",
|
|
38
|
+
"@aws-sdk/middleware-signing": "3.310.0",
|
|
39
|
+
"@aws-sdk/middleware-stack": "3.310.0",
|
|
40
|
+
"@aws-sdk/middleware-user-agent": "3.310.0",
|
|
41
|
+
"@aws-sdk/node-config-provider": "3.310.0",
|
|
42
|
+
"@aws-sdk/node-http-handler": "3.310.0",
|
|
43
|
+
"@aws-sdk/protocol-http": "3.310.0",
|
|
44
|
+
"@aws-sdk/smithy-client": "3.310.0",
|
|
45
|
+
"@aws-sdk/types": "3.310.0",
|
|
46
|
+
"@aws-sdk/url-parser": "3.310.0",
|
|
47
|
+
"@aws-sdk/util-base64": "3.310.0",
|
|
48
|
+
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
49
|
+
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.310.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.310.0",
|
|
52
|
+
"@aws-sdk/util-endpoints": "3.310.0",
|
|
53
|
+
"@aws-sdk/util-retry": "3.310.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
56
|
+
"@aws-sdk/util-utf8": "3.310.0",
|
|
57
57
|
"tslib": "^2.5.0",
|
|
58
58
|
"uuid": "^8.3.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
62
62
|
"@tsconfig/node14": "1.0.3",
|
|
63
63
|
"@types/node": "^14.14.31",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"files": [
|
|
82
|
-
"dist
|
|
82
|
+
"dist-*/**"
|
|
83
83
|
],
|
|
84
84
|
"author": {
|
|
85
85
|
"name": "AWS SDK for JavaScript Team",
|