@aws-sdk/client-timestream-query 3.564.0 → 3.567.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.
Files changed (33) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +88 -0
  3. package/dist-es/TimestreamQuery.js +4 -0
  4. package/dist-es/commands/DescribeAccountSettingsCommand.js +26 -0
  5. package/dist-es/commands/UpdateAccountSettingsCommand.js +26 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +4 -0
  8. package/dist-es/protocols/Aws_json1_0.js +38 -0
  9. package/dist-types/TimestreamQuery.d.ts +16 -0
  10. package/dist-types/TimestreamQueryClient.d.ts +4 -2
  11. package/dist-types/commands/CancelQueryCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateScheduledQueryCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteScheduledQueryCommand.d.ts +1 -1
  14. package/dist-types/commands/DescribeAccountSettingsCommand.d.ts +73 -0
  15. package/dist-types/commands/DescribeEndpointsCommand.d.ts +1 -1
  16. package/dist-types/commands/DescribeScheduledQueryCommand.d.ts +3 -1
  17. package/dist-types/commands/ExecuteScheduledQueryCommand.d.ts +1 -1
  18. package/dist-types/commands/ListScheduledQueriesCommand.d.ts +1 -1
  19. package/dist-types/commands/PrepareQueryCommand.d.ts +1 -1
  20. package/dist-types/commands/QueryCommand.d.ts +1 -1
  21. package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +81 -0
  22. package/dist-types/commands/UpdateScheduledQueryCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/models/models_0.d.ts +69 -1
  25. package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
  26. package/dist-types/ts3.4/TimestreamQuery.d.ts +36 -0
  27. package/dist-types/ts3.4/TimestreamQueryClient.d.ts +12 -0
  28. package/dist-types/ts3.4/commands/DescribeAccountSettingsCommand.d.ts +39 -0
  29. package/dist-types/ts3.4/commands/UpdateAccountSettingsCommand.d.ts +39 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +20 -0
  32. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
  33. package/package.json +15 -16
package/README.md CHANGED
@@ -229,6 +229,14 @@ DeleteScheduledQuery
229
229
 
230
230
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-query/command/DeleteScheduledQueryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-query/Interface/DeleteScheduledQueryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-query/Interface/DeleteScheduledQueryCommandOutput/)
231
231
 
232
+ </details>
233
+ <details>
234
+ <summary>
235
+ DescribeAccountSettings
236
+ </summary>
237
+
238
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-query/command/DescribeAccountSettingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-query/Interface/DescribeAccountSettingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-query/Interface/DescribeAccountSettingsCommandOutput/)
239
+
232
240
  </details>
233
241
  <details>
234
242
  <summary>
@@ -301,6 +309,14 @@ UntagResource
301
309
 
302
310
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-query/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-query/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-query/Interface/UntagResourceCommandOutput/)
303
311
 
312
+ </details>
313
+ <details>
314
+ <summary>
315
+ UpdateAccountSettings
316
+ </summary>
317
+
318
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/timestream-query/command/UpdateAccountSettingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-query/Interface/UpdateAccountSettingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-timestream-query/Interface/UpdateAccountSettingsCommandOutput/)
319
+
304
320
  </details>
305
321
  <details>
306
322
  <summary>
package/dist-cjs/index.js CHANGED
@@ -27,6 +27,7 @@ __export(src_exports, {
27
27
  CreateScheduledQueryCommand: () => CreateScheduledQueryCommand,
28
28
  CreateScheduledQueryRequestFilterSensitiveLog: () => CreateScheduledQueryRequestFilterSensitiveLog,
29
29
  DeleteScheduledQueryCommand: () => DeleteScheduledQueryCommand,
30
+ DescribeAccountSettingsCommand: () => DescribeAccountSettingsCommand,
30
31
  DescribeEndpointsCommand: () => DescribeEndpointsCommand,
31
32
  DescribeScheduledQueryCommand: () => DescribeScheduledQueryCommand,
32
33
  DescribeScheduledQueryResponseFilterSensitiveLog: () => DescribeScheduledQueryResponseFilterSensitiveLog,
@@ -43,6 +44,7 @@ __export(src_exports, {
43
44
  PrepareQueryResponseFilterSensitiveLog: () => PrepareQueryResponseFilterSensitiveLog,
44
45
  QueryCommand: () => QueryCommand,
45
46
  QueryExecutionException: () => QueryExecutionException,
47
+ QueryPricingModel: () => QueryPricingModel,
46
48
  QueryRequestFilterSensitiveLog: () => QueryRequestFilterSensitiveLog,
47
49
  ResourceNotFoundException: () => ResourceNotFoundException,
48
50
  S3EncryptionOption: () => S3EncryptionOption,
@@ -58,6 +60,7 @@ __export(src_exports, {
58
60
  TimestreamQueryClient: () => TimestreamQueryClient,
59
61
  TimestreamQueryServiceException: () => TimestreamQueryServiceException,
60
62
  UntagResourceCommand: () => UntagResourceCommand,
63
+ UpdateAccountSettingsCommand: () => UpdateAccountSettingsCommand,
61
64
  UpdateScheduledQueryCommand: () => UpdateScheduledQueryCommand,
62
65
  ValidationException: () => ValidationException,
63
66
  __Client: () => import_smithy_client.Client,
@@ -306,6 +309,10 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Timest
306
309
  };
307
310
  __name(_ResourceNotFoundException, "ResourceNotFoundException");
308
311
  var ResourceNotFoundException = _ResourceNotFoundException;
312
+ var QueryPricingModel = {
313
+ BYTES_SCANNED: "BYTES_SCANNED",
314
+ COMPUTE_UNITS: "COMPUTE_UNITS"
315
+ };
309
316
  var ScheduledQueryRunStatus = {
310
317
  AUTO_TRIGGER_FAILURE: "AUTO_TRIGGER_FAILURE",
311
318
  AUTO_TRIGGER_SUCCESS: "AUTO_TRIGGER_SUCCESS",
@@ -384,6 +391,12 @@ var se_DeleteScheduledQueryCommand = /* @__PURE__ */ __name(async (input, contex
384
391
  body = JSON.stringify((0, import_smithy_client._json)(input));
385
392
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
386
393
  }, "se_DeleteScheduledQueryCommand");
394
+ var se_DescribeAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
395
+ const headers = sharedHeaders("DescribeAccountSettings");
396
+ let body;
397
+ body = JSON.stringify((0, import_smithy_client._json)(input));
398
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
399
+ }, "se_DescribeAccountSettingsCommand");
387
400
  var se_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
388
401
  const headers = sharedHeaders("DescribeEndpoints");
389
402
  let body;
@@ -438,6 +451,12 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
438
451
  body = JSON.stringify((0, import_smithy_client._json)(input));
439
452
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
440
453
  }, "se_UntagResourceCommand");
454
+ var se_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
455
+ const headers = sharedHeaders("UpdateAccountSettings");
456
+ let body;
457
+ body = JSON.stringify((0, import_smithy_client._json)(input));
458
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
459
+ }, "se_UpdateAccountSettingsCommand");
441
460
  var se_UpdateScheduledQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
442
461
  const headers = sharedHeaders("UpdateScheduledQuery");
443
462
  let body;
@@ -480,6 +499,19 @@ var de_DeleteScheduledQueryCommand = /* @__PURE__ */ __name(async (output, conte
480
499
  };
481
500
  return response;
482
501
  }, "de_DeleteScheduledQueryCommand");
502
+ var de_DescribeAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
503
+ if (output.statusCode >= 300) {
504
+ return de_CommandError(output, context);
505
+ }
506
+ const data = await (0, import_core.parseJsonBody)(output.body, context);
507
+ let contents = {};
508
+ contents = (0, import_smithy_client._json)(data);
509
+ const response = {
510
+ $metadata: deserializeMetadata(output),
511
+ ...contents
512
+ };
513
+ return response;
514
+ }, "de_DescribeAccountSettingsCommand");
483
515
  var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
484
516
  if (output.statusCode >= 300) {
485
517
  return de_CommandError(output, context);
@@ -594,6 +626,19 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
594
626
  };
595
627
  return response;
596
628
  }, "de_UntagResourceCommand");
629
+ var de_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
630
+ if (output.statusCode >= 300) {
631
+ return de_CommandError(output, context);
632
+ }
633
+ const data = await (0, import_core.parseJsonBody)(output.body, context);
634
+ let contents = {};
635
+ contents = (0, import_smithy_client._json)(data);
636
+ const response = {
637
+ $metadata: deserializeMetadata(output),
638
+ ...contents
639
+ };
640
+ return response;
641
+ }, "de_UpdateAccountSettingsCommand");
597
642
  var de_UpdateScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
598
643
  if (output.statusCode >= 300) {
599
644
  return de_CommandError(output, context);
@@ -1153,6 +1198,25 @@ var _DeleteScheduledQueryCommand = class _DeleteScheduledQueryCommand extends im
1153
1198
  __name(_DeleteScheduledQueryCommand, "DeleteScheduledQueryCommand");
1154
1199
  var DeleteScheduledQueryCommand = _DeleteScheduledQueryCommand;
1155
1200
 
1201
+ // src/commands/DescribeAccountSettingsCommand.ts
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+ var _DescribeAccountSettingsCommand = class _DescribeAccountSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
1208
+ ...commonParams
1209
+ }).m(function(Command, cs, config, o) {
1210
+ return [
1211
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1212
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1213
+ (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o })
1214
+ ];
1215
+ }).s("Timestream_20181101", "DescribeAccountSettings", {}).n("TimestreamQueryClient", "DescribeAccountSettingsCommand").f(void 0, void 0).ser(se_DescribeAccountSettingsCommand).de(de_DescribeAccountSettingsCommand).build() {
1216
+ };
1217
+ __name(_DescribeAccountSettingsCommand, "DescribeAccountSettingsCommand");
1218
+ var DescribeAccountSettingsCommand = _DescribeAccountSettingsCommand;
1219
+
1156
1220
  // src/commands/DescribeScheduledQueryCommand.ts
1157
1221
 
1158
1222
 
@@ -1305,6 +1369,25 @@ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_cl
1305
1369
  __name(_UntagResourceCommand, "UntagResourceCommand");
1306
1370
  var UntagResourceCommand = _UntagResourceCommand;
1307
1371
 
1372
+ // src/commands/UpdateAccountSettingsCommand.ts
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+ var _UpdateAccountSettingsCommand = class _UpdateAccountSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
1379
+ ...commonParams
1380
+ }).m(function(Command, cs, config, o) {
1381
+ return [
1382
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1383
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1384
+ (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o })
1385
+ ];
1386
+ }).s("Timestream_20181101", "UpdateAccountSettings", {}).n("TimestreamQueryClient", "UpdateAccountSettingsCommand").f(void 0, void 0).ser(se_UpdateAccountSettingsCommand).de(de_UpdateAccountSettingsCommand).build() {
1387
+ };
1388
+ __name(_UpdateAccountSettingsCommand, "UpdateAccountSettingsCommand");
1389
+ var UpdateAccountSettingsCommand = _UpdateAccountSettingsCommand;
1390
+
1308
1391
  // src/commands/UpdateScheduledQueryCommand.ts
1309
1392
 
1310
1393
 
@@ -1329,6 +1412,7 @@ var commands = {
1329
1412
  CancelQueryCommand,
1330
1413
  CreateScheduledQueryCommand,
1331
1414
  DeleteScheduledQueryCommand,
1415
+ DescribeAccountSettingsCommand,
1332
1416
  DescribeEndpointsCommand,
1333
1417
  DescribeScheduledQueryCommand,
1334
1418
  ExecuteScheduledQueryCommand,
@@ -1338,6 +1422,7 @@ var commands = {
1338
1422
  QueryCommand,
1339
1423
  TagResourceCommand,
1340
1424
  UntagResourceCommand,
1425
+ UpdateAccountSettingsCommand,
1341
1426
  UpdateScheduledQueryCommand
1342
1427
  };
1343
1428
  var _TimestreamQuery = class _TimestreamQuery extends TimestreamQueryClient {
@@ -1368,6 +1453,7 @@ var paginateQuery = (0, import_core5.createPaginator)(TimestreamQueryClient, Que
1368
1453
  CancelQueryCommand,
1369
1454
  CreateScheduledQueryCommand,
1370
1455
  DeleteScheduledQueryCommand,
1456
+ DescribeAccountSettingsCommand,
1371
1457
  DescribeEndpointsCommand,
1372
1458
  DescribeScheduledQueryCommand,
1373
1459
  ExecuteScheduledQueryCommand,
@@ -1377,6 +1463,7 @@ var paginateQuery = (0, import_core5.createPaginator)(TimestreamQueryClient, Que
1377
1463
  QueryCommand,
1378
1464
  TagResourceCommand,
1379
1465
  UntagResourceCommand,
1466
+ UpdateAccountSettingsCommand,
1380
1467
  UpdateScheduledQueryCommand,
1381
1468
  paginateListScheduledQueries,
1382
1469
  paginateListTagsForResource,
@@ -1394,6 +1481,7 @@ var paginateQuery = (0, import_core5.createPaginator)(TimestreamQueryClient, Que
1394
1481
  ScalarMeasureValueType,
1395
1482
  ServiceQuotaExceededException,
1396
1483
  ResourceNotFoundException,
1484
+ QueryPricingModel,
1397
1485
  ScheduledQueryRunStatus,
1398
1486
  ScheduledQueryState,
1399
1487
  QueryExecutionException,
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CancelQueryCommand } from "./commands/CancelQueryCommand";
3
3
  import { CreateScheduledQueryCommand, } from "./commands/CreateScheduledQueryCommand";
4
4
  import { DeleteScheduledQueryCommand, } from "./commands/DeleteScheduledQueryCommand";
5
+ import { DescribeAccountSettingsCommand, } from "./commands/DescribeAccountSettingsCommand";
5
6
  import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
6
7
  import { DescribeScheduledQueryCommand, } from "./commands/DescribeScheduledQueryCommand";
7
8
  import { ExecuteScheduledQueryCommand, } from "./commands/ExecuteScheduledQueryCommand";
@@ -11,12 +12,14 @@ import { PrepareQueryCommand, } from "./commands/PrepareQueryCommand";
11
12
  import { QueryCommand } from "./commands/QueryCommand";
12
13
  import { TagResourceCommand } from "./commands/TagResourceCommand";
13
14
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
15
+ import { UpdateAccountSettingsCommand, } from "./commands/UpdateAccountSettingsCommand";
14
16
  import { UpdateScheduledQueryCommand, } from "./commands/UpdateScheduledQueryCommand";
15
17
  import { TimestreamQueryClient } from "./TimestreamQueryClient";
16
18
  const commands = {
17
19
  CancelQueryCommand,
18
20
  CreateScheduledQueryCommand,
19
21
  DeleteScheduledQueryCommand,
22
+ DescribeAccountSettingsCommand,
20
23
  DescribeEndpointsCommand,
21
24
  DescribeScheduledQueryCommand,
22
25
  ExecuteScheduledQueryCommand,
@@ -26,6 +29,7 @@ const commands = {
26
29
  QueryCommand,
27
30
  TagResourceCommand,
28
31
  UntagResourceCommand,
32
+ UpdateAccountSettingsCommand,
29
33
  UpdateScheduledQueryCommand,
30
34
  };
31
35
  export class TimestreamQuery extends TimestreamQueryClient {
@@ -0,0 +1,26 @@
1
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
+ import { getSerdePlugin } from "@smithy/middleware-serde";
4
+ import { Command as $Command } from "@smithy/smithy-client";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
+ import { de_DescribeAccountSettingsCommand, se_DescribeAccountSettingsCommand } from "../protocols/Aws_json1_0";
7
+ export { $Command };
8
+ export class DescribeAccountSettingsCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
18
+ ];
19
+ })
20
+ .s("Timestream_20181101", "DescribeAccountSettings", {})
21
+ .n("TimestreamQueryClient", "DescribeAccountSettingsCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_DescribeAccountSettingsCommand)
24
+ .de(de_DescribeAccountSettingsCommand)
25
+ .build() {
26
+ }
@@ -0,0 +1,26 @@
1
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
+ import { getSerdePlugin } from "@smithy/middleware-serde";
4
+ import { Command as $Command } from "@smithy/smithy-client";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
+ import { de_UpdateAccountSettingsCommand, se_UpdateAccountSettingsCommand } from "../protocols/Aws_json1_0";
7
+ export { $Command };
8
+ export class UpdateAccountSettingsCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }),
18
+ ];
19
+ })
20
+ .s("Timestream_20181101", "UpdateAccountSettings", {})
21
+ .n("TimestreamQueryClient", "UpdateAccountSettingsCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_UpdateAccountSettingsCommand)
24
+ .de(de_UpdateAccountSettingsCommand)
25
+ .build() {
26
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./CancelQueryCommand";
2
2
  export * from "./CreateScheduledQueryCommand";
3
3
  export * from "./DeleteScheduledQueryCommand";
4
+ export * from "./DescribeAccountSettingsCommand";
4
5
  export * from "./DescribeEndpointsCommand";
5
6
  export * from "./DescribeScheduledQueryCommand";
6
7
  export * from "./ExecuteScheduledQueryCommand";
@@ -10,4 +11,5 @@ export * from "./PrepareQueryCommand";
10
11
  export * from "./QueryCommand";
11
12
  export * from "./TagResourceCommand";
12
13
  export * from "./UntagResourceCommand";
14
+ export * from "./UpdateAccountSettingsCommand";
13
15
  export * from "./UpdateScheduledQueryCommand";
@@ -139,6 +139,10 @@ export class ResourceNotFoundException extends __BaseException {
139
139
  this.ScheduledQueryArn = opts.ScheduledQueryArn;
140
140
  }
141
141
  }
142
+ export const QueryPricingModel = {
143
+ BYTES_SCANNED: "BYTES_SCANNED",
144
+ COMPUTE_UNITS: "COMPUTE_UNITS",
145
+ };
142
146
  export const ScheduledQueryRunStatus = {
143
147
  AUTO_TRIGGER_FAILURE: "AUTO_TRIGGER_FAILURE",
144
148
  AUTO_TRIGGER_SUCCESS: "AUTO_TRIGGER_SUCCESS",
@@ -22,6 +22,12 @@ export const se_DeleteScheduledQueryCommand = async (input, context) => {
22
22
  body = JSON.stringify(_json(input));
23
23
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
24
  };
25
+ export const se_DescribeAccountSettingsCommand = async (input, context) => {
26
+ const headers = sharedHeaders("DescribeAccountSettings");
27
+ let body;
28
+ body = JSON.stringify(_json(input));
29
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
+ };
25
31
  export const se_DescribeEndpointsCommand = async (input, context) => {
26
32
  const headers = sharedHeaders("DescribeEndpoints");
27
33
  let body;
@@ -76,6 +82,12 @@ export const se_UntagResourceCommand = async (input, context) => {
76
82
  body = JSON.stringify(_json(input));
77
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
84
  };
85
+ export const se_UpdateAccountSettingsCommand = async (input, context) => {
86
+ const headers = sharedHeaders("UpdateAccountSettings");
87
+ let body;
88
+ body = JSON.stringify(_json(input));
89
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
+ };
79
91
  export const se_UpdateScheduledQueryCommand = async (input, context) => {
80
92
  const headers = sharedHeaders("UpdateScheduledQuery");
81
93
  let body;
@@ -118,6 +130,19 @@ export const de_DeleteScheduledQueryCommand = async (output, context) => {
118
130
  };
119
131
  return response;
120
132
  };
133
+ export const de_DescribeAccountSettingsCommand = async (output, context) => {
134
+ if (output.statusCode >= 300) {
135
+ return de_CommandError(output, context);
136
+ }
137
+ const data = await parseBody(output.body, context);
138
+ let contents = {};
139
+ contents = _json(data);
140
+ const response = {
141
+ $metadata: deserializeMetadata(output),
142
+ ...contents,
143
+ };
144
+ return response;
145
+ };
121
146
  export const de_DescribeEndpointsCommand = async (output, context) => {
122
147
  if (output.statusCode >= 300) {
123
148
  return de_CommandError(output, context);
@@ -232,6 +257,19 @@ export const de_UntagResourceCommand = async (output, context) => {
232
257
  };
233
258
  return response;
234
259
  };
260
+ export const de_UpdateAccountSettingsCommand = async (output, context) => {
261
+ if (output.statusCode >= 300) {
262
+ return de_CommandError(output, context);
263
+ }
264
+ const data = await parseBody(output.body, context);
265
+ let contents = {};
266
+ contents = _json(data);
267
+ const response = {
268
+ $metadata: deserializeMetadata(output),
269
+ ...contents,
270
+ };
271
+ return response;
272
+ };
235
273
  export const de_UpdateScheduledQueryCommand = async (output, context) => {
236
274
  if (output.statusCode >= 300) {
237
275
  return de_CommandError(output, context);
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { CancelQueryCommandInput, CancelQueryCommandOutput } from "./commands/CancelQueryCommand";
3
3
  import { CreateScheduledQueryCommandInput, CreateScheduledQueryCommandOutput } from "./commands/CreateScheduledQueryCommand";
4
4
  import { DeleteScheduledQueryCommandInput, DeleteScheduledQueryCommandOutput } from "./commands/DeleteScheduledQueryCommand";
5
+ import { DescribeAccountSettingsCommandInput, DescribeAccountSettingsCommandOutput } from "./commands/DescribeAccountSettingsCommand";
5
6
  import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
6
7
  import { DescribeScheduledQueryCommandInput, DescribeScheduledQueryCommandOutput } from "./commands/DescribeScheduledQueryCommand";
7
8
  import { ExecuteScheduledQueryCommandInput, ExecuteScheduledQueryCommandOutput } from "./commands/ExecuteScheduledQueryCommand";
@@ -11,6 +12,7 @@ import { PrepareQueryCommandInput, PrepareQueryCommandOutput } from "./commands/
11
12
  import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
12
13
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
13
14
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
15
+ import { UpdateAccountSettingsCommandInput, UpdateAccountSettingsCommandOutput } from "./commands/UpdateAccountSettingsCommand";
14
16
  import { UpdateScheduledQueryCommandInput, UpdateScheduledQueryCommandOutput } from "./commands/UpdateScheduledQueryCommand";
15
17
  import { TimestreamQueryClient } from "./TimestreamQueryClient";
16
18
  export interface TimestreamQuery {
@@ -32,6 +34,13 @@ export interface TimestreamQuery {
32
34
  deleteScheduledQuery(args: DeleteScheduledQueryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteScheduledQueryCommandOutput>;
33
35
  deleteScheduledQuery(args: DeleteScheduledQueryCommandInput, cb: (err: any, data?: DeleteScheduledQueryCommandOutput) => void): void;
34
36
  deleteScheduledQuery(args: DeleteScheduledQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteScheduledQueryCommandOutput) => void): void;
37
+ /**
38
+ * @see {@link DescribeAccountSettingsCommand}
39
+ */
40
+ describeAccountSettings(): Promise<DescribeAccountSettingsCommandOutput>;
41
+ describeAccountSettings(args: DescribeAccountSettingsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAccountSettingsCommandOutput>;
42
+ describeAccountSettings(args: DescribeAccountSettingsCommandInput, cb: (err: any, data?: DescribeAccountSettingsCommandOutput) => void): void;
43
+ describeAccountSettings(args: DescribeAccountSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAccountSettingsCommandOutput) => void): void;
35
44
  /**
36
45
  * @see {@link DescribeEndpointsCommand}
37
46
  */
@@ -88,6 +97,13 @@ export interface TimestreamQuery {
88
97
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
89
98
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
90
99
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
100
+ /**
101
+ * @see {@link UpdateAccountSettingsCommand}
102
+ */
103
+ updateAccountSettings(): Promise<UpdateAccountSettingsCommandOutput>;
104
+ updateAccountSettings(args: UpdateAccountSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAccountSettingsCommandOutput>;
105
+ updateAccountSettings(args: UpdateAccountSettingsCommandInput, cb: (err: any, data?: UpdateAccountSettingsCommandOutput) => void): void;
106
+ updateAccountSettings(args: UpdateAccountSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAccountSettingsCommandOutput) => void): void;
91
107
  /**
92
108
  * @see {@link UpdateScheduledQueryCommand}
93
109
  */
@@ -11,6 +11,7 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
11
11
  import { CancelQueryCommandInput, CancelQueryCommandOutput } from "./commands/CancelQueryCommand";
12
12
  import { CreateScheduledQueryCommandInput, CreateScheduledQueryCommandOutput } from "./commands/CreateScheduledQueryCommand";
13
13
  import { DeleteScheduledQueryCommandInput, DeleteScheduledQueryCommandOutput } from "./commands/DeleteScheduledQueryCommand";
14
+ import { DescribeAccountSettingsCommandInput, DescribeAccountSettingsCommandOutput } from "./commands/DescribeAccountSettingsCommand";
14
15
  import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
15
16
  import { DescribeScheduledQueryCommandInput, DescribeScheduledQueryCommandOutput } from "./commands/DescribeScheduledQueryCommand";
16
17
  import { ExecuteScheduledQueryCommandInput, ExecuteScheduledQueryCommandOutput } from "./commands/ExecuteScheduledQueryCommand";
@@ -20,6 +21,7 @@ import { PrepareQueryCommandInput, PrepareQueryCommandOutput } from "./commands/
20
21
  import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
21
22
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
22
23
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
24
+ import { UpdateAccountSettingsCommandInput, UpdateAccountSettingsCommandOutput } from "./commands/UpdateAccountSettingsCommand";
23
25
  import { UpdateScheduledQueryCommandInput, UpdateScheduledQueryCommandOutput } from "./commands/UpdateScheduledQueryCommand";
24
26
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
25
27
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -27,11 +29,11 @@ export { __Client };
27
29
  /**
28
30
  * @public
29
31
  */
30
- export type ServiceInputTypes = CancelQueryCommandInput | CreateScheduledQueryCommandInput | DeleteScheduledQueryCommandInput | DescribeEndpointsCommandInput | DescribeScheduledQueryCommandInput | ExecuteScheduledQueryCommandInput | ListScheduledQueriesCommandInput | ListTagsForResourceCommandInput | PrepareQueryCommandInput | QueryCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateScheduledQueryCommandInput;
32
+ export type ServiceInputTypes = CancelQueryCommandInput | CreateScheduledQueryCommandInput | DeleteScheduledQueryCommandInput | DescribeAccountSettingsCommandInput | DescribeEndpointsCommandInput | DescribeScheduledQueryCommandInput | ExecuteScheduledQueryCommandInput | ListScheduledQueriesCommandInput | ListTagsForResourceCommandInput | PrepareQueryCommandInput | QueryCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccountSettingsCommandInput | UpdateScheduledQueryCommandInput;
31
33
  /**
32
34
  * @public
33
35
  */
34
- export type ServiceOutputTypes = CancelQueryCommandOutput | CreateScheduledQueryCommandOutput | DeleteScheduledQueryCommandOutput | DescribeEndpointsCommandOutput | DescribeScheduledQueryCommandOutput | ExecuteScheduledQueryCommandOutput | ListScheduledQueriesCommandOutput | ListTagsForResourceCommandOutput | PrepareQueryCommandOutput | QueryCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateScheduledQueryCommandOutput;
36
+ export type ServiceOutputTypes = CancelQueryCommandOutput | CreateScheduledQueryCommandOutput | DeleteScheduledQueryCommandOutput | DescribeAccountSettingsCommandOutput | DescribeEndpointsCommandOutput | DescribeScheduledQueryCommandOutput | ExecuteScheduledQueryCommandOutput | ListScheduledQueriesCommandOutput | ListTagsForResourceCommandOutput | PrepareQueryCommandOutput | QueryCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccountSettingsCommandOutput | UpdateScheduledQueryCommandOutput;
35
37
  /**
36
38
  * @public
37
39
  */
@@ -60,7 +60,7 @@ declare const CancelQueryCommand_base: {
60
60
  *
61
61
  * @throws {@link InternalServerException} (server fault)
62
62
  * <p>
63
- * Timestream was unable to fully process this request because of an internal
63
+ * The service was unable to fully process this request because of an internal
64
64
  * server error. </p>
65
65
  *
66
66
  * @throws {@link InvalidEndpointException} (client fault)
@@ -126,7 +126,7 @@ declare const CreateScheduledQueryCommand_base: {
126
126
  *
127
127
  * @throws {@link InternalServerException} (server fault)
128
128
  * <p>
129
- * Timestream was unable to fully process this request because of an internal
129
+ * The service was unable to fully process this request because of an internal
130
130
  * server error. </p>
131
131
  *
132
132
  * @throws {@link InvalidEndpointException} (client fault)
@@ -53,7 +53,7 @@ declare const DeleteScheduledQueryCommand_base: {
53
53
  *
54
54
  * @throws {@link InternalServerException} (server fault)
55
55
  * <p>
56
- * Timestream was unable to fully process this request because of an internal
56
+ * The service was unable to fully process this request because of an internal
57
57
  * server error. </p>
58
58
  *
59
59
  * @throws {@link InvalidEndpointException} (client fault)
@@ -0,0 +1,73 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DescribeAccountSettingsRequest, DescribeAccountSettingsResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TimestreamQueryClientResolvedConfig } from "../TimestreamQueryClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DescribeAccountSettingsCommand}.
13
+ */
14
+ export interface DescribeAccountSettingsCommandInput extends DescribeAccountSettingsRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DescribeAccountSettingsCommand}.
20
+ */
21
+ export interface DescribeAccountSettingsCommandOutput extends DescribeAccountSettingsResponse, __MetadataBearer {
22
+ }
23
+ declare const DescribeAccountSettingsCommand_base: {
24
+ new (input: DescribeAccountSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeAccountSettingsCommandInput, DescribeAccountSettingsCommandOutput, TimestreamQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [DescribeAccountSettingsCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeAccountSettingsCommandInput, DescribeAccountSettingsCommandOutput, TimestreamQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload.</p>
30
+ * <p>You're charged only for the duration of compute units used for your workloads.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { TimestreamQueryClient, DescribeAccountSettingsCommand } from "@aws-sdk/client-timestream-query"; // ES Modules import
35
+ * // const { TimestreamQueryClient, DescribeAccountSettingsCommand } = require("@aws-sdk/client-timestream-query"); // CommonJS import
36
+ * const client = new TimestreamQueryClient(config);
37
+ * const input = {};
38
+ * const command = new DescribeAccountSettingsCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // DescribeAccountSettingsResponse
41
+ * // MaxQueryTCU: Number("int"),
42
+ * // QueryPricingModel: "BYTES_SCANNED" || "COMPUTE_UNITS",
43
+ * // };
44
+ *
45
+ * ```
46
+ *
47
+ * @param DescribeAccountSettingsCommandInput - {@link DescribeAccountSettingsCommandInput}
48
+ * @returns {@link DescribeAccountSettingsCommandOutput}
49
+ * @see {@link DescribeAccountSettingsCommandInput} for command's `input` shape.
50
+ * @see {@link DescribeAccountSettingsCommandOutput} for command's `response` shape.
51
+ * @see {@link TimestreamQueryClientResolvedConfig | config} for TimestreamQueryClient's `config` shape.
52
+ *
53
+ * @throws {@link AccessDeniedException} (client fault)
54
+ * <p> You are not authorized to perform this action. </p>
55
+ *
56
+ * @throws {@link InternalServerException} (server fault)
57
+ * <p>
58
+ * The service was unable to fully process this request because of an internal
59
+ * server error. </p>
60
+ *
61
+ * @throws {@link InvalidEndpointException} (client fault)
62
+ * <p>The requested endpoint was not valid.</p>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <p>The request was denied due to request throttling.</p>
66
+ *
67
+ * @throws {@link TimestreamQueryServiceException}
68
+ * <p>Base exception class for all service exceptions from TimestreamQuery service.</p>
69
+ *
70
+ * @public
71
+ */
72
+ export declare class DescribeAccountSettingsCommand extends DescribeAccountSettingsCommand_base {
73
+ }
@@ -75,7 +75,7 @@ declare const DescribeEndpointsCommand_base: {
75
75
  *
76
76
  * @throws {@link InternalServerException} (server fault)
77
77
  * <p>
78
- * Timestream was unable to fully process this request because of an internal
78
+ * The service was unable to fully process this request because of an internal
79
79
  * server error. </p>
80
80
  *
81
81
  * @throws {@link ThrottlingException} (client fault)
@@ -111,6 +111,7 @@ declare const DescribeScheduledQueryCommand_base: {
111
111
  * // ExecutionTimeInMillis: Number("long"),
112
112
  * // DataWrites: Number("long"),
113
113
  * // BytesMetered: Number("long"),
114
+ * // CumulativeBytesScanned: Number("long"),
114
115
  * // RecordsIngested: Number("long"),
115
116
  * // QueryResultRows: Number("long"),
116
117
  * // },
@@ -131,6 +132,7 @@ declare const DescribeScheduledQueryCommand_base: {
131
132
  * // ExecutionTimeInMillis: Number("long"),
132
133
  * // DataWrites: Number("long"),
133
134
  * // BytesMetered: Number("long"),
135
+ * // CumulativeBytesScanned: Number("long"),
134
136
  * // RecordsIngested: Number("long"),
135
137
  * // QueryResultRows: Number("long"),
136
138
  * // },
@@ -159,7 +161,7 @@ declare const DescribeScheduledQueryCommand_base: {
159
161
  *
160
162
  * @throws {@link InternalServerException} (server fault)
161
163
  * <p>
162
- * Timestream was unable to fully process this request because of an internal
164
+ * The service was unable to fully process this request because of an internal
163
165
  * server error. </p>
164
166
  *
165
167
  * @throws {@link InvalidEndpointException} (client fault)
@@ -55,7 +55,7 @@ declare const ExecuteScheduledQueryCommand_base: {
55
55
  *
56
56
  * @throws {@link InternalServerException} (server fault)
57
57
  * <p>
58
- * Timestream was unable to fully process this request because of an internal
58
+ * The service was unable to fully process this request because of an internal
59
59
  * server error. </p>
60
60
  *
61
61
  * @throws {@link InvalidEndpointException} (client fault)
@@ -81,7 +81,7 @@ declare const ListScheduledQueriesCommand_base: {
81
81
  *
82
82
  * @throws {@link InternalServerException} (server fault)
83
83
  * <p>
84
- * Timestream was unable to fully process this request because of an internal
84
+ * The service was unable to fully process this request because of an internal
85
85
  * server error. </p>
86
86
  *
87
87
  * @throws {@link InvalidEndpointException} (client fault)
@@ -96,7 +96,7 @@ declare const PrepareQueryCommand_base: {
96
96
  *
97
97
  * @throws {@link InternalServerException} (server fault)
98
98
  * <p>
99
- * Timestream was unable to fully process this request because of an internal
99
+ * The service was unable to fully process this request because of an internal
100
100
  * server error. </p>
101
101
  *
102
102
  * @throws {@link InvalidEndpointException} (client fault)