@aws-sdk/client-timestream-influxdb 3.893.0 → 3.894.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 +1301 -10
- package/package.json +6 -6
- package/dist-cjs/TimestreamInfluxDB.js +0 -45
- package/dist-cjs/TimestreamInfluxDBClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/CreateDbClusterCommand.js +0 -27
- package/dist-cjs/commands/CreateDbInstanceCommand.js +0 -27
- package/dist-cjs/commands/CreateDbParameterGroupCommand.js +0 -26
- package/dist-cjs/commands/DeleteDbClusterCommand.js +0 -26
- package/dist-cjs/commands/DeleteDbInstanceCommand.js +0 -26
- package/dist-cjs/commands/GetDbClusterCommand.js +0 -26
- package/dist-cjs/commands/GetDbInstanceCommand.js +0 -26
- package/dist-cjs/commands/GetDbParameterGroupCommand.js +0 -26
- package/dist-cjs/commands/ListDbClustersCommand.js +0 -26
- package/dist-cjs/commands/ListDbInstancesCommand.js +0 -26
- package/dist-cjs/commands/ListDbInstancesForClusterCommand.js +0 -26
- package/dist-cjs/commands/ListDbParameterGroupsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateDbClusterCommand.js +0 -26
- package/dist-cjs/commands/UpdateDbInstanceCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -20
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/TimestreamInfluxDBServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -206
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListDbClustersPaginator.js +0 -7
- package/dist-cjs/pagination/ListDbInstancesForClusterPaginator.js +0 -7
- package/dist-cjs/pagination/ListDbInstancesPaginator.js +0 -7
- package/dist-cjs/pagination/ListDbParameterGroupsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -8
- package/dist-cjs/protocols/Aws_json1_0.js +0 -491
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,491 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateDbInstanceCommand = exports.de_UpdateDbClusterCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListDbParameterGroupsCommand = exports.de_ListDbInstancesForClusterCommand = exports.de_ListDbInstancesCommand = exports.de_ListDbClustersCommand = exports.de_GetDbParameterGroupCommand = exports.de_GetDbInstanceCommand = exports.de_GetDbClusterCommand = exports.de_DeleteDbInstanceCommand = exports.de_DeleteDbClusterCommand = exports.de_CreateDbParameterGroupCommand = exports.de_CreateDbInstanceCommand = exports.de_CreateDbClusterCommand = exports.se_UpdateDbInstanceCommand = exports.se_UpdateDbClusterCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListDbParameterGroupsCommand = exports.se_ListDbInstancesForClusterCommand = exports.se_ListDbInstancesCommand = exports.se_ListDbClustersCommand = exports.se_GetDbParameterGroupCommand = exports.se_GetDbInstanceCommand = exports.se_GetDbClusterCommand = exports.se_DeleteDbInstanceCommand = exports.se_DeleteDbClusterCommand = exports.se_CreateDbParameterGroupCommand = exports.se_CreateDbInstanceCommand = exports.se_CreateDbClusterCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const TimestreamInfluxDBServiceException_1 = require("../models/TimestreamInfluxDBServiceException");
|
|
9
|
-
const se_CreateDbClusterCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("CreateDbCluster");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_CreateDbClusterCommand = se_CreateDbClusterCommand;
|
|
16
|
-
const se_CreateDbInstanceCommand = async (input, context) => {
|
|
17
|
-
const headers = sharedHeaders("CreateDbInstance");
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
-
};
|
|
22
|
-
exports.se_CreateDbInstanceCommand = se_CreateDbInstanceCommand;
|
|
23
|
-
const se_CreateDbParameterGroupCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("CreateDbParameterGroup");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
|
-
exports.se_CreateDbParameterGroupCommand = se_CreateDbParameterGroupCommand;
|
|
30
|
-
const se_DeleteDbClusterCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteDbCluster");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
exports.se_DeleteDbClusterCommand = se_DeleteDbClusterCommand;
|
|
37
|
-
const se_DeleteDbInstanceCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("DeleteDbInstance");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
exports.se_DeleteDbInstanceCommand = se_DeleteDbInstanceCommand;
|
|
44
|
-
const se_GetDbClusterCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("GetDbCluster");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
exports.se_GetDbClusterCommand = se_GetDbClusterCommand;
|
|
51
|
-
const se_GetDbInstanceCommand = async (input, context) => {
|
|
52
|
-
const headers = sharedHeaders("GetDbInstance");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
-
};
|
|
57
|
-
exports.se_GetDbInstanceCommand = se_GetDbInstanceCommand;
|
|
58
|
-
const se_GetDbParameterGroupCommand = async (input, context) => {
|
|
59
|
-
const headers = sharedHeaders("GetDbParameterGroup");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_GetDbParameterGroupCommand = se_GetDbParameterGroupCommand;
|
|
65
|
-
const se_ListDbClustersCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("ListDbClusters");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
exports.se_ListDbClustersCommand = se_ListDbClustersCommand;
|
|
72
|
-
const se_ListDbInstancesCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("ListDbInstances");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
exports.se_ListDbInstancesCommand = se_ListDbInstancesCommand;
|
|
79
|
-
const se_ListDbInstancesForClusterCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("ListDbInstancesForCluster");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.se_ListDbInstancesForClusterCommand = se_ListDbInstancesForClusterCommand;
|
|
86
|
-
const se_ListDbParameterGroupsCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("ListDbParameterGroups");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
exports.se_ListDbParameterGroupsCommand = se_ListDbParameterGroupsCommand;
|
|
93
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
100
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
101
|
-
const headers = sharedHeaders("TagResource");
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
-
};
|
|
106
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
107
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
108
|
-
const headers = sharedHeaders("UntagResource");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
114
|
-
const se_UpdateDbClusterCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("UpdateDbCluster");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
exports.se_UpdateDbClusterCommand = se_UpdateDbClusterCommand;
|
|
121
|
-
const se_UpdateDbInstanceCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("UpdateDbInstance");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
exports.se_UpdateDbInstanceCommand = se_UpdateDbInstanceCommand;
|
|
128
|
-
const de_CreateDbClusterCommand = async (output, context) => {
|
|
129
|
-
if (output.statusCode >= 300) {
|
|
130
|
-
return de_CommandError(output, context);
|
|
131
|
-
}
|
|
132
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
133
|
-
let contents = {};
|
|
134
|
-
contents = (0, smithy_client_1._json)(data);
|
|
135
|
-
const response = {
|
|
136
|
-
$metadata: deserializeMetadata(output),
|
|
137
|
-
...contents,
|
|
138
|
-
};
|
|
139
|
-
return response;
|
|
140
|
-
};
|
|
141
|
-
exports.de_CreateDbClusterCommand = de_CreateDbClusterCommand;
|
|
142
|
-
const de_CreateDbInstanceCommand = async (output, context) => {
|
|
143
|
-
if (output.statusCode >= 300) {
|
|
144
|
-
return de_CommandError(output, context);
|
|
145
|
-
}
|
|
146
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
147
|
-
let contents = {};
|
|
148
|
-
contents = (0, smithy_client_1._json)(data);
|
|
149
|
-
const response = {
|
|
150
|
-
$metadata: deserializeMetadata(output),
|
|
151
|
-
...contents,
|
|
152
|
-
};
|
|
153
|
-
return response;
|
|
154
|
-
};
|
|
155
|
-
exports.de_CreateDbInstanceCommand = de_CreateDbInstanceCommand;
|
|
156
|
-
const de_CreateDbParameterGroupCommand = async (output, context) => {
|
|
157
|
-
if (output.statusCode >= 300) {
|
|
158
|
-
return de_CommandError(output, context);
|
|
159
|
-
}
|
|
160
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
161
|
-
let contents = {};
|
|
162
|
-
contents = (0, smithy_client_1._json)(data);
|
|
163
|
-
const response = {
|
|
164
|
-
$metadata: deserializeMetadata(output),
|
|
165
|
-
...contents,
|
|
166
|
-
};
|
|
167
|
-
return response;
|
|
168
|
-
};
|
|
169
|
-
exports.de_CreateDbParameterGroupCommand = de_CreateDbParameterGroupCommand;
|
|
170
|
-
const de_DeleteDbClusterCommand = async (output, context) => {
|
|
171
|
-
if (output.statusCode >= 300) {
|
|
172
|
-
return de_CommandError(output, context);
|
|
173
|
-
}
|
|
174
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
175
|
-
let contents = {};
|
|
176
|
-
contents = (0, smithy_client_1._json)(data);
|
|
177
|
-
const response = {
|
|
178
|
-
$metadata: deserializeMetadata(output),
|
|
179
|
-
...contents,
|
|
180
|
-
};
|
|
181
|
-
return response;
|
|
182
|
-
};
|
|
183
|
-
exports.de_DeleteDbClusterCommand = de_DeleteDbClusterCommand;
|
|
184
|
-
const de_DeleteDbInstanceCommand = async (output, context) => {
|
|
185
|
-
if (output.statusCode >= 300) {
|
|
186
|
-
return de_CommandError(output, context);
|
|
187
|
-
}
|
|
188
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
189
|
-
let contents = {};
|
|
190
|
-
contents = (0, smithy_client_1._json)(data);
|
|
191
|
-
const response = {
|
|
192
|
-
$metadata: deserializeMetadata(output),
|
|
193
|
-
...contents,
|
|
194
|
-
};
|
|
195
|
-
return response;
|
|
196
|
-
};
|
|
197
|
-
exports.de_DeleteDbInstanceCommand = de_DeleteDbInstanceCommand;
|
|
198
|
-
const de_GetDbClusterCommand = async (output, context) => {
|
|
199
|
-
if (output.statusCode >= 300) {
|
|
200
|
-
return de_CommandError(output, context);
|
|
201
|
-
}
|
|
202
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
203
|
-
let contents = {};
|
|
204
|
-
contents = (0, smithy_client_1._json)(data);
|
|
205
|
-
const response = {
|
|
206
|
-
$metadata: deserializeMetadata(output),
|
|
207
|
-
...contents,
|
|
208
|
-
};
|
|
209
|
-
return response;
|
|
210
|
-
};
|
|
211
|
-
exports.de_GetDbClusterCommand = de_GetDbClusterCommand;
|
|
212
|
-
const de_GetDbInstanceCommand = async (output, context) => {
|
|
213
|
-
if (output.statusCode >= 300) {
|
|
214
|
-
return de_CommandError(output, context);
|
|
215
|
-
}
|
|
216
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
217
|
-
let contents = {};
|
|
218
|
-
contents = (0, smithy_client_1._json)(data);
|
|
219
|
-
const response = {
|
|
220
|
-
$metadata: deserializeMetadata(output),
|
|
221
|
-
...contents,
|
|
222
|
-
};
|
|
223
|
-
return response;
|
|
224
|
-
};
|
|
225
|
-
exports.de_GetDbInstanceCommand = de_GetDbInstanceCommand;
|
|
226
|
-
const de_GetDbParameterGroupCommand = async (output, context) => {
|
|
227
|
-
if (output.statusCode >= 300) {
|
|
228
|
-
return de_CommandError(output, context);
|
|
229
|
-
}
|
|
230
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
231
|
-
let contents = {};
|
|
232
|
-
contents = (0, smithy_client_1._json)(data);
|
|
233
|
-
const response = {
|
|
234
|
-
$metadata: deserializeMetadata(output),
|
|
235
|
-
...contents,
|
|
236
|
-
};
|
|
237
|
-
return response;
|
|
238
|
-
};
|
|
239
|
-
exports.de_GetDbParameterGroupCommand = de_GetDbParameterGroupCommand;
|
|
240
|
-
const de_ListDbClustersCommand = async (output, context) => {
|
|
241
|
-
if (output.statusCode >= 300) {
|
|
242
|
-
return de_CommandError(output, context);
|
|
243
|
-
}
|
|
244
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
245
|
-
let contents = {};
|
|
246
|
-
contents = (0, smithy_client_1._json)(data);
|
|
247
|
-
const response = {
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
...contents,
|
|
250
|
-
};
|
|
251
|
-
return response;
|
|
252
|
-
};
|
|
253
|
-
exports.de_ListDbClustersCommand = de_ListDbClustersCommand;
|
|
254
|
-
const de_ListDbInstancesCommand = async (output, context) => {
|
|
255
|
-
if (output.statusCode >= 300) {
|
|
256
|
-
return de_CommandError(output, context);
|
|
257
|
-
}
|
|
258
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
259
|
-
let contents = {};
|
|
260
|
-
contents = (0, smithy_client_1._json)(data);
|
|
261
|
-
const response = {
|
|
262
|
-
$metadata: deserializeMetadata(output),
|
|
263
|
-
...contents,
|
|
264
|
-
};
|
|
265
|
-
return response;
|
|
266
|
-
};
|
|
267
|
-
exports.de_ListDbInstancesCommand = de_ListDbInstancesCommand;
|
|
268
|
-
const de_ListDbInstancesForClusterCommand = async (output, context) => {
|
|
269
|
-
if (output.statusCode >= 300) {
|
|
270
|
-
return de_CommandError(output, context);
|
|
271
|
-
}
|
|
272
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
273
|
-
let contents = {};
|
|
274
|
-
contents = (0, smithy_client_1._json)(data);
|
|
275
|
-
const response = {
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
...contents,
|
|
278
|
-
};
|
|
279
|
-
return response;
|
|
280
|
-
};
|
|
281
|
-
exports.de_ListDbInstancesForClusterCommand = de_ListDbInstancesForClusterCommand;
|
|
282
|
-
const de_ListDbParameterGroupsCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode >= 300) {
|
|
284
|
-
return de_CommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
287
|
-
let contents = {};
|
|
288
|
-
contents = (0, smithy_client_1._json)(data);
|
|
289
|
-
const response = {
|
|
290
|
-
$metadata: deserializeMetadata(output),
|
|
291
|
-
...contents,
|
|
292
|
-
};
|
|
293
|
-
return response;
|
|
294
|
-
};
|
|
295
|
-
exports.de_ListDbParameterGroupsCommand = de_ListDbParameterGroupsCommand;
|
|
296
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
297
|
-
if (output.statusCode >= 300) {
|
|
298
|
-
return de_CommandError(output, context);
|
|
299
|
-
}
|
|
300
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
301
|
-
let contents = {};
|
|
302
|
-
contents = (0, smithy_client_1._json)(data);
|
|
303
|
-
const response = {
|
|
304
|
-
$metadata: deserializeMetadata(output),
|
|
305
|
-
...contents,
|
|
306
|
-
};
|
|
307
|
-
return response;
|
|
308
|
-
};
|
|
309
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
310
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
311
|
-
if (output.statusCode >= 300) {
|
|
312
|
-
return de_CommandError(output, context);
|
|
313
|
-
}
|
|
314
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
315
|
-
const response = {
|
|
316
|
-
$metadata: deserializeMetadata(output),
|
|
317
|
-
};
|
|
318
|
-
return response;
|
|
319
|
-
};
|
|
320
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
321
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
322
|
-
if (output.statusCode >= 300) {
|
|
323
|
-
return de_CommandError(output, context);
|
|
324
|
-
}
|
|
325
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
326
|
-
const response = {
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
};
|
|
329
|
-
return response;
|
|
330
|
-
};
|
|
331
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
332
|
-
const de_UpdateDbClusterCommand = async (output, context) => {
|
|
333
|
-
if (output.statusCode >= 300) {
|
|
334
|
-
return de_CommandError(output, context);
|
|
335
|
-
}
|
|
336
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
337
|
-
let contents = {};
|
|
338
|
-
contents = (0, smithy_client_1._json)(data);
|
|
339
|
-
const response = {
|
|
340
|
-
$metadata: deserializeMetadata(output),
|
|
341
|
-
...contents,
|
|
342
|
-
};
|
|
343
|
-
return response;
|
|
344
|
-
};
|
|
345
|
-
exports.de_UpdateDbClusterCommand = de_UpdateDbClusterCommand;
|
|
346
|
-
const de_UpdateDbInstanceCommand = async (output, context) => {
|
|
347
|
-
if (output.statusCode >= 300) {
|
|
348
|
-
return de_CommandError(output, context);
|
|
349
|
-
}
|
|
350
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
351
|
-
let contents = {};
|
|
352
|
-
contents = (0, smithy_client_1._json)(data);
|
|
353
|
-
const response = {
|
|
354
|
-
$metadata: deserializeMetadata(output),
|
|
355
|
-
...contents,
|
|
356
|
-
};
|
|
357
|
-
return response;
|
|
358
|
-
};
|
|
359
|
-
exports.de_UpdateDbInstanceCommand = de_UpdateDbInstanceCommand;
|
|
360
|
-
const de_CommandError = async (output, context) => {
|
|
361
|
-
const parsedOutput = {
|
|
362
|
-
...output,
|
|
363
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
364
|
-
};
|
|
365
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
366
|
-
switch (errorCode) {
|
|
367
|
-
case "AccessDeniedException":
|
|
368
|
-
case "com.amazonaws.timestreaminfluxdb#AccessDeniedException":
|
|
369
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
370
|
-
case "ConflictException":
|
|
371
|
-
case "com.amazonaws.timestreaminfluxdb#ConflictException":
|
|
372
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
373
|
-
case "InternalServerException":
|
|
374
|
-
case "com.amazonaws.timestreaminfluxdb#InternalServerException":
|
|
375
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
376
|
-
case "ResourceNotFoundException":
|
|
377
|
-
case "com.amazonaws.timestreaminfluxdb#ResourceNotFoundException":
|
|
378
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
379
|
-
case "ServiceQuotaExceededException":
|
|
380
|
-
case "com.amazonaws.timestreaminfluxdb#ServiceQuotaExceededException":
|
|
381
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
382
|
-
case "ThrottlingException":
|
|
383
|
-
case "com.amazonaws.timestreaminfluxdb#ThrottlingException":
|
|
384
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
385
|
-
case "ValidationException":
|
|
386
|
-
case "com.amazonaws.timestreaminfluxdb#ValidationException":
|
|
387
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
388
|
-
default:
|
|
389
|
-
const parsedBody = parsedOutput.body;
|
|
390
|
-
return throwDefaultError({
|
|
391
|
-
output,
|
|
392
|
-
parsedBody,
|
|
393
|
-
errorCode,
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
398
|
-
const body = parsedOutput.body;
|
|
399
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
400
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
401
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
402
|
-
...deserialized,
|
|
403
|
-
});
|
|
404
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
405
|
-
};
|
|
406
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
407
|
-
const body = parsedOutput.body;
|
|
408
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
409
|
-
const exception = new models_0_1.ConflictException({
|
|
410
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
411
|
-
...deserialized,
|
|
412
|
-
});
|
|
413
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
414
|
-
};
|
|
415
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
416
|
-
const body = parsedOutput.body;
|
|
417
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
418
|
-
const exception = new models_0_1.InternalServerException({
|
|
419
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
420
|
-
...deserialized,
|
|
421
|
-
});
|
|
422
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
423
|
-
};
|
|
424
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
425
|
-
const body = parsedOutput.body;
|
|
426
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
427
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
428
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
429
|
-
...deserialized,
|
|
430
|
-
});
|
|
431
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
432
|
-
};
|
|
433
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
434
|
-
const body = parsedOutput.body;
|
|
435
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
436
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
437
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
438
|
-
...deserialized,
|
|
439
|
-
});
|
|
440
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
441
|
-
};
|
|
442
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
443
|
-
const body = parsedOutput.body;
|
|
444
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
445
|
-
const exception = new models_0_1.ThrottlingException({
|
|
446
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
447
|
-
...deserialized,
|
|
448
|
-
});
|
|
449
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
450
|
-
};
|
|
451
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
452
|
-
const body = parsedOutput.body;
|
|
453
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
454
|
-
const exception = new models_0_1.ValidationException({
|
|
455
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
456
|
-
...deserialized,
|
|
457
|
-
});
|
|
458
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
459
|
-
};
|
|
460
|
-
const deserializeMetadata = (output) => ({
|
|
461
|
-
httpStatusCode: output.statusCode,
|
|
462
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
463
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
464
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
465
|
-
});
|
|
466
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
467
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(TimestreamInfluxDBServiceException_1.TimestreamInfluxDBServiceException);
|
|
468
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
469
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
470
|
-
const contents = {
|
|
471
|
-
protocol,
|
|
472
|
-
hostname,
|
|
473
|
-
port,
|
|
474
|
-
method: "POST",
|
|
475
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
476
|
-
headers,
|
|
477
|
-
};
|
|
478
|
-
if (resolvedHostname !== undefined) {
|
|
479
|
-
contents.hostname = resolvedHostname;
|
|
480
|
-
}
|
|
481
|
-
if (body !== undefined) {
|
|
482
|
-
contents.body = body;
|
|
483
|
-
}
|
|
484
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
485
|
-
};
|
|
486
|
-
function sharedHeaders(operation) {
|
|
487
|
-
return {
|
|
488
|
-
"content-type": "application/x-amz-json-1.0",
|
|
489
|
-
"x-amz-target": `AmazonTimestreamInfluxDB.${operation}`,
|
|
490
|
-
};
|
|
491
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|