@aws-sdk/client-timestream-influxdb 3.926.0 → 3.928.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 +1088 -852
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/TimestreamInfluxDBClient.js +2 -0
- package/dist-es/commands/CreateDbClusterCommand.js +3 -10
- package/dist-es/commands/CreateDbInstanceCommand.js +3 -10
- package/dist-es/commands/CreateDbParameterGroupCommand.js +3 -9
- package/dist-es/commands/DeleteDbClusterCommand.js +3 -9
- package/dist-es/commands/DeleteDbInstanceCommand.js +3 -9
- package/dist-es/commands/GetDbClusterCommand.js +3 -9
- package/dist-es/commands/GetDbInstanceCommand.js +3 -9
- package/dist-es/commands/GetDbParameterGroupCommand.js +3 -9
- package/dist-es/commands/ListDbClustersCommand.js +3 -9
- package/dist-es/commands/ListDbInstancesCommand.js +3 -9
- package/dist-es/commands/ListDbInstancesForClusterCommand.js +3 -9
- package/dist-es/commands/ListDbParameterGroupsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDbClusterCommand.js +3 -9
- package/dist-es/commands/UpdateDbInstanceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -11
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1037 -0
- package/dist-types/TimestreamInfluxDBClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -8
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +83 -0
- package/dist-types/ts3.4/TimestreamInfluxDBClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -6
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +89 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_0.js +0 -704
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -155
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -209
|
@@ -1,704 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { _Parameters, AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { TimestreamInfluxDBServiceException as __BaseException } from "../models/TimestreamInfluxDBServiceException";
|
|
6
|
-
export const se_CreateDbClusterCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreateDbCluster");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateDbInstanceCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateDbInstance");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateDbParameterGroupCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateDbParameterGroup");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(se_CreateDbParameterGroupInput(input, context));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_DeleteDbClusterCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DeleteDbCluster");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteDbInstanceCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteDbInstance");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_GetDbClusterCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("GetDbCluster");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_GetDbInstanceCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("GetDbInstance");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_GetDbParameterGroupCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("GetDbParameterGroup");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_ListDbClustersCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("ListDbClusters");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_ListDbInstancesCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("ListDbInstances");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_ListDbInstancesForClusterCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("ListDbInstancesForCluster");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_ListDbParameterGroupsCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("ListDbParameterGroups");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("TagResource");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("UntagResource");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_UpdateDbClusterCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("UpdateDbCluster");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_UpdateDbInstanceCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("UpdateDbInstance");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const de_CreateDbClusterCommand = async (output, context) => {
|
|
109
|
-
if (output.statusCode >= 300) {
|
|
110
|
-
return de_CommandError(output, context);
|
|
111
|
-
}
|
|
112
|
-
const data = await parseBody(output.body, context);
|
|
113
|
-
let contents = {};
|
|
114
|
-
contents = _json(data);
|
|
115
|
-
const response = {
|
|
116
|
-
$metadata: deserializeMetadata(output),
|
|
117
|
-
...contents,
|
|
118
|
-
};
|
|
119
|
-
return response;
|
|
120
|
-
};
|
|
121
|
-
export const de_CreateDbInstanceCommand = async (output, context) => {
|
|
122
|
-
if (output.statusCode >= 300) {
|
|
123
|
-
return de_CommandError(output, context);
|
|
124
|
-
}
|
|
125
|
-
const data = await parseBody(output.body, context);
|
|
126
|
-
let contents = {};
|
|
127
|
-
contents = _json(data);
|
|
128
|
-
const response = {
|
|
129
|
-
$metadata: deserializeMetadata(output),
|
|
130
|
-
...contents,
|
|
131
|
-
};
|
|
132
|
-
return response;
|
|
133
|
-
};
|
|
134
|
-
export const de_CreateDbParameterGroupCommand = async (output, context) => {
|
|
135
|
-
if (output.statusCode >= 300) {
|
|
136
|
-
return de_CommandError(output, context);
|
|
137
|
-
}
|
|
138
|
-
const data = await parseBody(output.body, context);
|
|
139
|
-
let contents = {};
|
|
140
|
-
contents = de_CreateDbParameterGroupOutput(data, context);
|
|
141
|
-
const response = {
|
|
142
|
-
$metadata: deserializeMetadata(output),
|
|
143
|
-
...contents,
|
|
144
|
-
};
|
|
145
|
-
return response;
|
|
146
|
-
};
|
|
147
|
-
export const de_DeleteDbClusterCommand = async (output, context) => {
|
|
148
|
-
if (output.statusCode >= 300) {
|
|
149
|
-
return de_CommandError(output, context);
|
|
150
|
-
}
|
|
151
|
-
const data = await parseBody(output.body, context);
|
|
152
|
-
let contents = {};
|
|
153
|
-
contents = _json(data);
|
|
154
|
-
const response = {
|
|
155
|
-
$metadata: deserializeMetadata(output),
|
|
156
|
-
...contents,
|
|
157
|
-
};
|
|
158
|
-
return response;
|
|
159
|
-
};
|
|
160
|
-
export const de_DeleteDbInstanceCommand = async (output, context) => {
|
|
161
|
-
if (output.statusCode >= 300) {
|
|
162
|
-
return de_CommandError(output, context);
|
|
163
|
-
}
|
|
164
|
-
const data = await parseBody(output.body, context);
|
|
165
|
-
let contents = {};
|
|
166
|
-
contents = _json(data);
|
|
167
|
-
const response = {
|
|
168
|
-
$metadata: deserializeMetadata(output),
|
|
169
|
-
...contents,
|
|
170
|
-
};
|
|
171
|
-
return response;
|
|
172
|
-
};
|
|
173
|
-
export const de_GetDbClusterCommand = async (output, context) => {
|
|
174
|
-
if (output.statusCode >= 300) {
|
|
175
|
-
return de_CommandError(output, context);
|
|
176
|
-
}
|
|
177
|
-
const data = await parseBody(output.body, context);
|
|
178
|
-
let contents = {};
|
|
179
|
-
contents = _json(data);
|
|
180
|
-
const response = {
|
|
181
|
-
$metadata: deserializeMetadata(output),
|
|
182
|
-
...contents,
|
|
183
|
-
};
|
|
184
|
-
return response;
|
|
185
|
-
};
|
|
186
|
-
export const de_GetDbInstanceCommand = async (output, context) => {
|
|
187
|
-
if (output.statusCode >= 300) {
|
|
188
|
-
return de_CommandError(output, context);
|
|
189
|
-
}
|
|
190
|
-
const data = await parseBody(output.body, context);
|
|
191
|
-
let contents = {};
|
|
192
|
-
contents = _json(data);
|
|
193
|
-
const response = {
|
|
194
|
-
$metadata: deserializeMetadata(output),
|
|
195
|
-
...contents,
|
|
196
|
-
};
|
|
197
|
-
return response;
|
|
198
|
-
};
|
|
199
|
-
export const de_GetDbParameterGroupCommand = async (output, context) => {
|
|
200
|
-
if (output.statusCode >= 300) {
|
|
201
|
-
return de_CommandError(output, context);
|
|
202
|
-
}
|
|
203
|
-
const data = await parseBody(output.body, context);
|
|
204
|
-
let contents = {};
|
|
205
|
-
contents = de_GetDbParameterGroupOutput(data, context);
|
|
206
|
-
const response = {
|
|
207
|
-
$metadata: deserializeMetadata(output),
|
|
208
|
-
...contents,
|
|
209
|
-
};
|
|
210
|
-
return response;
|
|
211
|
-
};
|
|
212
|
-
export const de_ListDbClustersCommand = async (output, context) => {
|
|
213
|
-
if (output.statusCode >= 300) {
|
|
214
|
-
return de_CommandError(output, context);
|
|
215
|
-
}
|
|
216
|
-
const data = await parseBody(output.body, context);
|
|
217
|
-
let contents = {};
|
|
218
|
-
contents = _json(data);
|
|
219
|
-
const response = {
|
|
220
|
-
$metadata: deserializeMetadata(output),
|
|
221
|
-
...contents,
|
|
222
|
-
};
|
|
223
|
-
return response;
|
|
224
|
-
};
|
|
225
|
-
export const de_ListDbInstancesCommand = async (output, context) => {
|
|
226
|
-
if (output.statusCode >= 300) {
|
|
227
|
-
return de_CommandError(output, context);
|
|
228
|
-
}
|
|
229
|
-
const data = await parseBody(output.body, context);
|
|
230
|
-
let contents = {};
|
|
231
|
-
contents = _json(data);
|
|
232
|
-
const response = {
|
|
233
|
-
$metadata: deserializeMetadata(output),
|
|
234
|
-
...contents,
|
|
235
|
-
};
|
|
236
|
-
return response;
|
|
237
|
-
};
|
|
238
|
-
export const de_ListDbInstancesForClusterCommand = async (output, context) => {
|
|
239
|
-
if (output.statusCode >= 300) {
|
|
240
|
-
return de_CommandError(output, context);
|
|
241
|
-
}
|
|
242
|
-
const data = await parseBody(output.body, context);
|
|
243
|
-
let contents = {};
|
|
244
|
-
contents = _json(data);
|
|
245
|
-
const response = {
|
|
246
|
-
$metadata: deserializeMetadata(output),
|
|
247
|
-
...contents,
|
|
248
|
-
};
|
|
249
|
-
return response;
|
|
250
|
-
};
|
|
251
|
-
export const de_ListDbParameterGroupsCommand = async (output, context) => {
|
|
252
|
-
if (output.statusCode >= 300) {
|
|
253
|
-
return de_CommandError(output, context);
|
|
254
|
-
}
|
|
255
|
-
const data = await parseBody(output.body, context);
|
|
256
|
-
let contents = {};
|
|
257
|
-
contents = _json(data);
|
|
258
|
-
const response = {
|
|
259
|
-
$metadata: deserializeMetadata(output),
|
|
260
|
-
...contents,
|
|
261
|
-
};
|
|
262
|
-
return response;
|
|
263
|
-
};
|
|
264
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
265
|
-
if (output.statusCode >= 300) {
|
|
266
|
-
return de_CommandError(output, context);
|
|
267
|
-
}
|
|
268
|
-
const data = await parseBody(output.body, context);
|
|
269
|
-
let contents = {};
|
|
270
|
-
contents = _json(data);
|
|
271
|
-
const response = {
|
|
272
|
-
$metadata: deserializeMetadata(output),
|
|
273
|
-
...contents,
|
|
274
|
-
};
|
|
275
|
-
return response;
|
|
276
|
-
};
|
|
277
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
278
|
-
if (output.statusCode >= 300) {
|
|
279
|
-
return de_CommandError(output, context);
|
|
280
|
-
}
|
|
281
|
-
await collectBody(output.body, context);
|
|
282
|
-
const response = {
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
};
|
|
285
|
-
return response;
|
|
286
|
-
};
|
|
287
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
288
|
-
if (output.statusCode >= 300) {
|
|
289
|
-
return de_CommandError(output, context);
|
|
290
|
-
}
|
|
291
|
-
await collectBody(output.body, context);
|
|
292
|
-
const response = {
|
|
293
|
-
$metadata: deserializeMetadata(output),
|
|
294
|
-
};
|
|
295
|
-
return response;
|
|
296
|
-
};
|
|
297
|
-
export const de_UpdateDbClusterCommand = async (output, context) => {
|
|
298
|
-
if (output.statusCode >= 300) {
|
|
299
|
-
return de_CommandError(output, context);
|
|
300
|
-
}
|
|
301
|
-
const data = await parseBody(output.body, context);
|
|
302
|
-
let contents = {};
|
|
303
|
-
contents = _json(data);
|
|
304
|
-
const response = {
|
|
305
|
-
$metadata: deserializeMetadata(output),
|
|
306
|
-
...contents,
|
|
307
|
-
};
|
|
308
|
-
return response;
|
|
309
|
-
};
|
|
310
|
-
export const de_UpdateDbInstanceCommand = async (output, context) => {
|
|
311
|
-
if (output.statusCode >= 300) {
|
|
312
|
-
return de_CommandError(output, context);
|
|
313
|
-
}
|
|
314
|
-
const data = await parseBody(output.body, context);
|
|
315
|
-
let contents = {};
|
|
316
|
-
contents = _json(data);
|
|
317
|
-
const response = {
|
|
318
|
-
$metadata: deserializeMetadata(output),
|
|
319
|
-
...contents,
|
|
320
|
-
};
|
|
321
|
-
return response;
|
|
322
|
-
};
|
|
323
|
-
const de_CommandError = async (output, context) => {
|
|
324
|
-
const parsedOutput = {
|
|
325
|
-
...output,
|
|
326
|
-
body: await parseErrorBody(output.body, context),
|
|
327
|
-
};
|
|
328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
329
|
-
switch (errorCode) {
|
|
330
|
-
case "AccessDeniedException":
|
|
331
|
-
case "com.amazonaws.timestreaminfluxdb#AccessDeniedException":
|
|
332
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
333
|
-
case "ConflictException":
|
|
334
|
-
case "com.amazonaws.timestreaminfluxdb#ConflictException":
|
|
335
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
336
|
-
case "InternalServerException":
|
|
337
|
-
case "com.amazonaws.timestreaminfluxdb#InternalServerException":
|
|
338
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
339
|
-
case "ResourceNotFoundException":
|
|
340
|
-
case "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException":
|
|
341
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
342
|
-
case "ServiceQuotaExceededException":
|
|
343
|
-
case "com.amazonaws.timestreaminfluxdb#ServiceQuotaExceededException":
|
|
344
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
345
|
-
case "ThrottlingException":
|
|
346
|
-
case "com.amazonaws.timestreaminfluxdb#ThrottlingException":
|
|
347
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
348
|
-
case "ValidationException":
|
|
349
|
-
case "com.amazonaws.timestreaminfluxdb#ValidationException":
|
|
350
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
351
|
-
default:
|
|
352
|
-
const parsedBody = parsedOutput.body;
|
|
353
|
-
return throwDefaultError({
|
|
354
|
-
output,
|
|
355
|
-
parsedBody,
|
|
356
|
-
errorCode,
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
361
|
-
const body = parsedOutput.body;
|
|
362
|
-
const deserialized = _json(body);
|
|
363
|
-
const exception = new AccessDeniedException({
|
|
364
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
365
|
-
...deserialized,
|
|
366
|
-
});
|
|
367
|
-
return __decorateServiceException(exception, body);
|
|
368
|
-
};
|
|
369
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
370
|
-
const body = parsedOutput.body;
|
|
371
|
-
const deserialized = _json(body);
|
|
372
|
-
const exception = new ConflictException({
|
|
373
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
374
|
-
...deserialized,
|
|
375
|
-
});
|
|
376
|
-
return __decorateServiceException(exception, body);
|
|
377
|
-
};
|
|
378
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
379
|
-
const body = parsedOutput.body;
|
|
380
|
-
const deserialized = _json(body);
|
|
381
|
-
const exception = new InternalServerException({
|
|
382
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
383
|
-
...deserialized,
|
|
384
|
-
});
|
|
385
|
-
return __decorateServiceException(exception, body);
|
|
386
|
-
};
|
|
387
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
388
|
-
const body = parsedOutput.body;
|
|
389
|
-
const deserialized = _json(body);
|
|
390
|
-
const exception = new ResourceNotFoundException({
|
|
391
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
392
|
-
...deserialized,
|
|
393
|
-
});
|
|
394
|
-
return __decorateServiceException(exception, body);
|
|
395
|
-
};
|
|
396
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
397
|
-
const body = parsedOutput.body;
|
|
398
|
-
const deserialized = _json(body);
|
|
399
|
-
const exception = new ServiceQuotaExceededException({
|
|
400
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
401
|
-
...deserialized,
|
|
402
|
-
});
|
|
403
|
-
return __decorateServiceException(exception, body);
|
|
404
|
-
};
|
|
405
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
406
|
-
const body = parsedOutput.body;
|
|
407
|
-
const deserialized = _json(body);
|
|
408
|
-
const exception = new ThrottlingException({
|
|
409
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
410
|
-
...deserialized,
|
|
411
|
-
});
|
|
412
|
-
return __decorateServiceException(exception, body);
|
|
413
|
-
};
|
|
414
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
415
|
-
const body = parsedOutput.body;
|
|
416
|
-
const deserialized = _json(body);
|
|
417
|
-
const exception = new ValidationException({
|
|
418
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
419
|
-
...deserialized,
|
|
420
|
-
});
|
|
421
|
-
return __decorateServiceException(exception, body);
|
|
422
|
-
};
|
|
423
|
-
const se_CreateDbParameterGroupInput = (input, context) => {
|
|
424
|
-
return take(input, {
|
|
425
|
-
description: [],
|
|
426
|
-
name: [],
|
|
427
|
-
parameters: (_) => se__Parameters(_, context),
|
|
428
|
-
tags: _json,
|
|
429
|
-
});
|
|
430
|
-
};
|
|
431
|
-
const se_InfluxDBv3CoreParameters = (input, context) => {
|
|
432
|
-
return take(input, {
|
|
433
|
-
dataFusionConfig: [],
|
|
434
|
-
dataFusionMaxParquetFanout: [],
|
|
435
|
-
dataFusionNumThreads: [],
|
|
436
|
-
dataFusionRuntimeDisableLifoSlot: [],
|
|
437
|
-
dataFusionRuntimeEventInterval: [],
|
|
438
|
-
dataFusionRuntimeGlobalQueueInterval: [],
|
|
439
|
-
dataFusionRuntimeMaxBlockingThreads: [],
|
|
440
|
-
dataFusionRuntimeMaxIoEventsPerTick: [],
|
|
441
|
-
dataFusionRuntimeThreadKeepAlive: _json,
|
|
442
|
-
dataFusionRuntimeThreadPriority: [],
|
|
443
|
-
dataFusionRuntimeType: [],
|
|
444
|
-
dataFusionUseCachedParquetLoader: [],
|
|
445
|
-
deleteGracePeriod: _json,
|
|
446
|
-
disableParquetMemCache: [],
|
|
447
|
-
distinctCacheEvictionInterval: _json,
|
|
448
|
-
execMemPoolBytes: _json,
|
|
449
|
-
forceSnapshotMemThreshold: _json,
|
|
450
|
-
gen1Duration: _json,
|
|
451
|
-
gen1LookbackDuration: _json,
|
|
452
|
-
hardDeleteDefaultDuration: _json,
|
|
453
|
-
lastCacheEvictionInterval: _json,
|
|
454
|
-
logFilter: [],
|
|
455
|
-
logFormat: [],
|
|
456
|
-
maxHttpRequestSize: [],
|
|
457
|
-
parquetMemCachePruneInterval: _json,
|
|
458
|
-
parquetMemCachePrunePercentage: __serializeFloat,
|
|
459
|
-
parquetMemCacheQueryPathDuration: _json,
|
|
460
|
-
parquetMemCacheSize: _json,
|
|
461
|
-
preemptiveCacheAge: _json,
|
|
462
|
-
queryFileLimit: [],
|
|
463
|
-
queryLogSize: [],
|
|
464
|
-
retentionCheckInterval: _json,
|
|
465
|
-
snapshottedWalFilesToKeep: [],
|
|
466
|
-
tableIndexCacheConcurrencyLimit: [],
|
|
467
|
-
tableIndexCacheMaxEntries: [],
|
|
468
|
-
walMaxWriteBufferSize: [],
|
|
469
|
-
walReplayConcurrencyLimit: [],
|
|
470
|
-
walReplayFailOnError: [],
|
|
471
|
-
walSnapshotSize: [],
|
|
472
|
-
});
|
|
473
|
-
};
|
|
474
|
-
const se_InfluxDBv3EnterpriseParameters = (input, context) => {
|
|
475
|
-
return take(input, {
|
|
476
|
-
catalogSyncInterval: _json,
|
|
477
|
-
compactionCheckInterval: _json,
|
|
478
|
-
compactionCleanupWait: _json,
|
|
479
|
-
compactionGen2Duration: _json,
|
|
480
|
-
compactionMaxNumFilesPerPlan: [],
|
|
481
|
-
compactionMultipliers: [],
|
|
482
|
-
compactionRowLimit: [],
|
|
483
|
-
dataFusionConfig: [],
|
|
484
|
-
dataFusionMaxParquetFanout: [],
|
|
485
|
-
dataFusionNumThreads: [],
|
|
486
|
-
dataFusionRuntimeDisableLifoSlot: [],
|
|
487
|
-
dataFusionRuntimeEventInterval: [],
|
|
488
|
-
dataFusionRuntimeGlobalQueueInterval: [],
|
|
489
|
-
dataFusionRuntimeMaxBlockingThreads: [],
|
|
490
|
-
dataFusionRuntimeMaxIoEventsPerTick: [],
|
|
491
|
-
dataFusionRuntimeThreadKeepAlive: _json,
|
|
492
|
-
dataFusionRuntimeThreadPriority: [],
|
|
493
|
-
dataFusionRuntimeType: [],
|
|
494
|
-
dataFusionUseCachedParquetLoader: [],
|
|
495
|
-
dedicatedCompactor: [],
|
|
496
|
-
deleteGracePeriod: _json,
|
|
497
|
-
disableParquetMemCache: [],
|
|
498
|
-
distinctCacheEvictionInterval: _json,
|
|
499
|
-
distinctValueCacheDisableFromHistory: [],
|
|
500
|
-
execMemPoolBytes: _json,
|
|
501
|
-
forceSnapshotMemThreshold: _json,
|
|
502
|
-
gen1Duration: _json,
|
|
503
|
-
gen1LookbackDuration: _json,
|
|
504
|
-
hardDeleteDefaultDuration: _json,
|
|
505
|
-
ingestQueryInstances: [],
|
|
506
|
-
lastCacheEvictionInterval: _json,
|
|
507
|
-
lastValueCacheDisableFromHistory: [],
|
|
508
|
-
logFilter: [],
|
|
509
|
-
logFormat: [],
|
|
510
|
-
maxHttpRequestSize: [],
|
|
511
|
-
parquetMemCachePruneInterval: _json,
|
|
512
|
-
parquetMemCachePrunePercentage: __serializeFloat,
|
|
513
|
-
parquetMemCacheQueryPathDuration: _json,
|
|
514
|
-
parquetMemCacheSize: _json,
|
|
515
|
-
preemptiveCacheAge: _json,
|
|
516
|
-
queryFileLimit: [],
|
|
517
|
-
queryLogSize: [],
|
|
518
|
-
queryOnlyInstances: [],
|
|
519
|
-
replicationInterval: _json,
|
|
520
|
-
retentionCheckInterval: _json,
|
|
521
|
-
snapshottedWalFilesToKeep: [],
|
|
522
|
-
tableIndexCacheConcurrencyLimit: [],
|
|
523
|
-
tableIndexCacheMaxEntries: [],
|
|
524
|
-
walMaxWriteBufferSize: [],
|
|
525
|
-
walReplayConcurrencyLimit: [],
|
|
526
|
-
walReplayFailOnError: [],
|
|
527
|
-
walSnapshotSize: [],
|
|
528
|
-
});
|
|
529
|
-
};
|
|
530
|
-
const se__Parameters = (input, context) => {
|
|
531
|
-
return _Parameters.visit(input, {
|
|
532
|
-
InfluxDBv2: (value) => ({ InfluxDBv2: _json(value) }),
|
|
533
|
-
InfluxDBv3Core: (value) => ({ InfluxDBv3Core: se_InfluxDBv3CoreParameters(value, context) }),
|
|
534
|
-
InfluxDBv3Enterprise: (value) => ({ InfluxDBv3Enterprise: se_InfluxDBv3EnterpriseParameters(value, context) }),
|
|
535
|
-
_: (name, value) => ({ [name]: value }),
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
const de_CreateDbParameterGroupOutput = (output, context) => {
|
|
539
|
-
return take(output, {
|
|
540
|
-
arn: __expectString,
|
|
541
|
-
description: __expectString,
|
|
542
|
-
id: __expectString,
|
|
543
|
-
name: __expectString,
|
|
544
|
-
parameters: (_) => de__Parameters(__expectUnion(_), context),
|
|
545
|
-
});
|
|
546
|
-
};
|
|
547
|
-
const de_GetDbParameterGroupOutput = (output, context) => {
|
|
548
|
-
return take(output, {
|
|
549
|
-
arn: __expectString,
|
|
550
|
-
description: __expectString,
|
|
551
|
-
id: __expectString,
|
|
552
|
-
name: __expectString,
|
|
553
|
-
parameters: (_) => de__Parameters(__expectUnion(_), context),
|
|
554
|
-
});
|
|
555
|
-
};
|
|
556
|
-
const de_InfluxDBv3CoreParameters = (output, context) => {
|
|
557
|
-
return take(output, {
|
|
558
|
-
dataFusionConfig: __expectString,
|
|
559
|
-
dataFusionMaxParquetFanout: __expectInt32,
|
|
560
|
-
dataFusionNumThreads: __expectInt32,
|
|
561
|
-
dataFusionRuntimeDisableLifoSlot: __expectBoolean,
|
|
562
|
-
dataFusionRuntimeEventInterval: __expectInt32,
|
|
563
|
-
dataFusionRuntimeGlobalQueueInterval: __expectInt32,
|
|
564
|
-
dataFusionRuntimeMaxBlockingThreads: __expectInt32,
|
|
565
|
-
dataFusionRuntimeMaxIoEventsPerTick: __expectInt32,
|
|
566
|
-
dataFusionRuntimeThreadKeepAlive: _json,
|
|
567
|
-
dataFusionRuntimeThreadPriority: __expectInt32,
|
|
568
|
-
dataFusionRuntimeType: __expectString,
|
|
569
|
-
dataFusionUseCachedParquetLoader: __expectBoolean,
|
|
570
|
-
deleteGracePeriod: _json,
|
|
571
|
-
disableParquetMemCache: __expectBoolean,
|
|
572
|
-
distinctCacheEvictionInterval: _json,
|
|
573
|
-
execMemPoolBytes: (_) => _json(__expectUnion(_)),
|
|
574
|
-
forceSnapshotMemThreshold: (_) => _json(__expectUnion(_)),
|
|
575
|
-
gen1Duration: _json,
|
|
576
|
-
gen1LookbackDuration: _json,
|
|
577
|
-
hardDeleteDefaultDuration: _json,
|
|
578
|
-
lastCacheEvictionInterval: _json,
|
|
579
|
-
logFilter: __expectString,
|
|
580
|
-
logFormat: __expectString,
|
|
581
|
-
maxHttpRequestSize: __expectLong,
|
|
582
|
-
parquetMemCachePruneInterval: _json,
|
|
583
|
-
parquetMemCachePrunePercentage: __limitedParseFloat32,
|
|
584
|
-
parquetMemCacheQueryPathDuration: _json,
|
|
585
|
-
parquetMemCacheSize: (_) => _json(__expectUnion(_)),
|
|
586
|
-
preemptiveCacheAge: _json,
|
|
587
|
-
queryFileLimit: __expectInt32,
|
|
588
|
-
queryLogSize: __expectInt32,
|
|
589
|
-
retentionCheckInterval: _json,
|
|
590
|
-
snapshottedWalFilesToKeep: __expectInt32,
|
|
591
|
-
tableIndexCacheConcurrencyLimit: __expectInt32,
|
|
592
|
-
tableIndexCacheMaxEntries: __expectInt32,
|
|
593
|
-
walMaxWriteBufferSize: __expectInt32,
|
|
594
|
-
walReplayConcurrencyLimit: __expectInt32,
|
|
595
|
-
walReplayFailOnError: __expectBoolean,
|
|
596
|
-
walSnapshotSize: __expectInt32,
|
|
597
|
-
});
|
|
598
|
-
};
|
|
599
|
-
const de_InfluxDBv3EnterpriseParameters = (output, context) => {
|
|
600
|
-
return take(output, {
|
|
601
|
-
catalogSyncInterval: _json,
|
|
602
|
-
compactionCheckInterval: _json,
|
|
603
|
-
compactionCleanupWait: _json,
|
|
604
|
-
compactionGen2Duration: _json,
|
|
605
|
-
compactionMaxNumFilesPerPlan: __expectInt32,
|
|
606
|
-
compactionMultipliers: __expectString,
|
|
607
|
-
compactionRowLimit: __expectInt32,
|
|
608
|
-
dataFusionConfig: __expectString,
|
|
609
|
-
dataFusionMaxParquetFanout: __expectInt32,
|
|
610
|
-
dataFusionNumThreads: __expectInt32,
|
|
611
|
-
dataFusionRuntimeDisableLifoSlot: __expectBoolean,
|
|
612
|
-
dataFusionRuntimeEventInterval: __expectInt32,
|
|
613
|
-
dataFusionRuntimeGlobalQueueInterval: __expectInt32,
|
|
614
|
-
dataFusionRuntimeMaxBlockingThreads: __expectInt32,
|
|
615
|
-
dataFusionRuntimeMaxIoEventsPerTick: __expectInt32,
|
|
616
|
-
dataFusionRuntimeThreadKeepAlive: _json,
|
|
617
|
-
dataFusionRuntimeThreadPriority: __expectInt32,
|
|
618
|
-
dataFusionRuntimeType: __expectString,
|
|
619
|
-
dataFusionUseCachedParquetLoader: __expectBoolean,
|
|
620
|
-
dedicatedCompactor: __expectBoolean,
|
|
621
|
-
deleteGracePeriod: _json,
|
|
622
|
-
disableParquetMemCache: __expectBoolean,
|
|
623
|
-
distinctCacheEvictionInterval: _json,
|
|
624
|
-
distinctValueCacheDisableFromHistory: __expectBoolean,
|
|
625
|
-
execMemPoolBytes: (_) => _json(__expectUnion(_)),
|
|
626
|
-
forceSnapshotMemThreshold: (_) => _json(__expectUnion(_)),
|
|
627
|
-
gen1Duration: _json,
|
|
628
|
-
gen1LookbackDuration: _json,
|
|
629
|
-
hardDeleteDefaultDuration: _json,
|
|
630
|
-
ingestQueryInstances: __expectInt32,
|
|
631
|
-
lastCacheEvictionInterval: _json,
|
|
632
|
-
lastValueCacheDisableFromHistory: __expectBoolean,
|
|
633
|
-
logFilter: __expectString,
|
|
634
|
-
logFormat: __expectString,
|
|
635
|
-
maxHttpRequestSize: __expectLong,
|
|
636
|
-
parquetMemCachePruneInterval: _json,
|
|
637
|
-
parquetMemCachePrunePercentage: __limitedParseFloat32,
|
|
638
|
-
parquetMemCacheQueryPathDuration: _json,
|
|
639
|
-
parquetMemCacheSize: (_) => _json(__expectUnion(_)),
|
|
640
|
-
preemptiveCacheAge: _json,
|
|
641
|
-
queryFileLimit: __expectInt32,
|
|
642
|
-
queryLogSize: __expectInt32,
|
|
643
|
-
queryOnlyInstances: __expectInt32,
|
|
644
|
-
replicationInterval: _json,
|
|
645
|
-
retentionCheckInterval: _json,
|
|
646
|
-
snapshottedWalFilesToKeep: __expectInt32,
|
|
647
|
-
tableIndexCacheConcurrencyLimit: __expectInt32,
|
|
648
|
-
tableIndexCacheMaxEntries: __expectInt32,
|
|
649
|
-
walMaxWriteBufferSize: __expectInt32,
|
|
650
|
-
walReplayConcurrencyLimit: __expectInt32,
|
|
651
|
-
walReplayFailOnError: __expectBoolean,
|
|
652
|
-
walSnapshotSize: __expectInt32,
|
|
653
|
-
});
|
|
654
|
-
};
|
|
655
|
-
const de__Parameters = (output, context) => {
|
|
656
|
-
if (output.InfluxDBv2 != null) {
|
|
657
|
-
return {
|
|
658
|
-
InfluxDBv2: _json(output.InfluxDBv2),
|
|
659
|
-
};
|
|
660
|
-
}
|
|
661
|
-
if (output.InfluxDBv3Core != null) {
|
|
662
|
-
return {
|
|
663
|
-
InfluxDBv3Core: de_InfluxDBv3CoreParameters(output.InfluxDBv3Core, context),
|
|
664
|
-
};
|
|
665
|
-
}
|
|
666
|
-
if (output.InfluxDBv3Enterprise != null) {
|
|
667
|
-
return {
|
|
668
|
-
InfluxDBv3Enterprise: de_InfluxDBv3EnterpriseParameters(output.InfluxDBv3Enterprise, context),
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
return { $unknown: Object.entries(output)[0] };
|
|
672
|
-
};
|
|
673
|
-
const deserializeMetadata = (output) => ({
|
|
674
|
-
httpStatusCode: output.statusCode,
|
|
675
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
676
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
677
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
678
|
-
});
|
|
679
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
680
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
681
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
682
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
683
|
-
const contents = {
|
|
684
|
-
protocol,
|
|
685
|
-
hostname,
|
|
686
|
-
port,
|
|
687
|
-
method: "POST",
|
|
688
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
689
|
-
headers,
|
|
690
|
-
};
|
|
691
|
-
if (resolvedHostname !== undefined) {
|
|
692
|
-
contents.hostname = resolvedHostname;
|
|
693
|
-
}
|
|
694
|
-
if (body !== undefined) {
|
|
695
|
-
contents.body = body;
|
|
696
|
-
}
|
|
697
|
-
return new __HttpRequest(contents);
|
|
698
|
-
};
|
|
699
|
-
function sharedHeaders(operation) {
|
|
700
|
-
return {
|
|
701
|
-
"content-type": "application/x-amz-json-1.0",
|
|
702
|
-
"x-amz-target": `AmazonTimestreamInfluxDB.${operation}`,
|
|
703
|
-
};
|
|
704
|
-
}
|